oops. accidentaly committed test move of voice line (the FIXME still applies though)
authornemo
Fri, 12 Aug 2011 13:15:30 -0400
changeset 5552 8694688ccc1c
parent 5551 0897b947e7a0
child 5553 4bb542350a18
oops. accidentaly committed test move of voice line (the FIXME still applies though)
hedgewars/uScript.pas
--- a/hedgewars/uScript.pas	Fri Aug 12 12:42:50 2011 -0400
+++ b/hedgewars/uScript.pas	Fri Aug 12 13:15:30 2011 -0400
@@ -1128,10 +1128,10 @@
 (*
  FIXME FIXME FIXME FIXME
  Something is very wrong here.
- For some reason, if I assign voice after fort (or don't use the variable) it is empty.
+ For some reason, if I assign voice after the first ParseCommand, it is empty
 *)
+        voice:= lua_tostring(L, 5);
         ParseCommand('addteam x ' + lua_tostring(L, 2) + ' ' + lua_tostring(L, 1), true);
-        voice:= lua_tostring(L, 5);
         ParseCommand('grave ' + lua_tostring(L, 3), true);
         ParseCommand('fort ' + lua_tostring(L, 4), true);
         ParseCommand('voicepack ' + voice, true);