hedgewars/uScript.pas
changeset 5552 8694688ccc1c
parent 5549 ccfb9b8ab9d1
child 5553 4bb542350a18
equal deleted inserted replaced
5551:0897b947e7a0 5552:8694688ccc1c
  1126     else
  1126     else
  1127         begin
  1127         begin
  1128 (*
  1128 (*
  1129  FIXME FIXME FIXME FIXME
  1129  FIXME FIXME FIXME FIXME
  1130  Something is very wrong here.
  1130  Something is very wrong here.
  1131  For some reason, if I assign voice after fort (or don't use the variable) it is empty.
  1131  For some reason, if I assign voice after the first ParseCommand, it is empty
  1132 *)
  1132 *)
       
  1133         voice:= lua_tostring(L, 5);
  1133         ParseCommand('addteam x ' + lua_tostring(L, 2) + ' ' + lua_tostring(L, 1), true);
  1134         ParseCommand('addteam x ' + lua_tostring(L, 2) + ' ' + lua_tostring(L, 1), true);
  1134         voice:= lua_tostring(L, 5);
       
  1135         ParseCommand('grave ' + lua_tostring(L, 3), true);
  1135         ParseCommand('grave ' + lua_tostring(L, 3), true);
  1136         ParseCommand('fort ' + lua_tostring(L, 4), true);
  1136         ParseCommand('fort ' + lua_tostring(L, 4), true);
  1137         ParseCommand('voicepack ' + voice, true);
  1137         ParseCommand('voicepack ' + voice, true);
  1138         if (np = 6) then ParseCommand('flag ' + lua_tostring(L, 6), true);
  1138         if (np = 6) then ParseCommand('flag ' + lua_tostring(L, 6), true);
  1139         CurrentTeam^.Binds:= DefaultBinds
  1139         CurrentTeam^.Binds:= DefaultBinds