share/hedgewars/Data/Scripts/Animate.lua
changeset 7213 fce7de71742f
parent 7205 cdc38e49a276
child 7245 53f73f4ae203
--- a/share/hedgewars/Data/Scripts/Animate.lua	Tue Jun 26 02:07:58 2012 +0300
+++ b/share/hedgewars/Data/Scripts/Animate.lua	Fri Jun 29 14:39:05 2012 +0300
@@ -217,6 +217,9 @@
 
 function AnimCaption(gear, text, time)
   AddCaption(text)
+  if time == nil then
+    return true
+  end
   AnimWait(gear, time)
   return true
 end