# HG changeset patch # User nemo # Date 1313169330 14400 # Node ID 8694688ccc1c4e5a0d556f491615446303df5c46 # Parent 0897b947e7a032e03ea1a499f950b4edd1459886 oops. accidentaly committed test move of voice line (the FIXME still applies though) diff -r 0897b947e7a0 -r 8694688ccc1c 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);