aboutsummaryrefslogtreecommitdiff
path: root/test/toxy/kb.wid
diff options
context:
space:
mode:
authorN.N. <krzyszcz@users.sourceforge.net>2004-03-23 12:07:22 +0000
committerN.N. <krzyszcz@users.sourceforge.net>2004-03-23 12:07:22 +0000
commit6f0f6fb5c0fe8ab2548c84a65fb6d1ee9363e317 (patch)
tree0ea5f55c75f0d3c7149dea0a0b6c87a0665d0a3c /test/toxy/kb.wid
parent88b4da18ab484ea55f4a58174bf0ccebe0088f24 (diff)
toxy alpha9
svn path=/trunk/externals/miXed/; revision=1470
Diffstat (limited to 'test/toxy/kb.wid')
-rw-r--r--test/toxy/kb.wid2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/toxy/kb.wid b/test/toxy/kb.wid
index bfba5ac..8a081d7 100644
--- a/test/toxy/kb.wid
+++ b/test/toxy/kb.wid
@@ -1,4 +1,6 @@
proc ::toxy::kb {path target remote noctaves size} {
+# guard against BadAlloc crashes
+ if {$size > 10} {set size 10}
set lft [expr {round(5 * $size)}]
set top [expr {round(5 * $size)}]
set bot [expr {round(100 * $size)}]