hedgewars/uScript.pas
changeset 2924 908851e59958
parent 2905 f3c79f7193a9
child 2948 3f21a9dc93d0
equal deleted inserted replaced
2923:e33ecd95aa1a 2924:908851e59958
   205 		WriteLnToConsole('LUA: Wrong number of parameters passed to AddTeam!');
   205 		WriteLnToConsole('LUA: Wrong number of parameters passed to AddTeam!');
   206 		//lua_pushnil(L)
   206 		//lua_pushnil(L)
   207 		end
   207 		end
   208 	else
   208 	else
   209 		begin
   209 		begin
   210 		ParseCommand('addteam ' + lua_tostring(L, 2) + ' ' + lua_tostring(L, 1), true);
   210 		ParseCommand('addteam x ' + lua_tostring(L, 2) + ' ' + lua_tostring(L, 1), true);
   211 		ParseCommand('grave ' + lua_tostring(L, 3), true);
   211 		ParseCommand('grave ' + lua_tostring(L, 3), true);
   212 		ParseCommand('fort ' + lua_tostring(L, 4), true);
   212 		ParseCommand('fort ' + lua_tostring(L, 4), true);
   213 		ParseCommand('voicepack ' + lua_tostring(L, 5), true);
   213 		ParseCommand('voicepack ' + lua_tostring(L, 5), true);
   214 		CurrentTeam^.Binds:= DefaultBinds;
   214 		CurrentTeam^.Binds:= DefaultBinds;
   215 		// fails on x64
   215 		// fails on x64