oops. accidentaly committed test move of voice line (the FIXME still applies though)
--- 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);