share/hedgewars/Data/Scripts/Multiplayer/WxW.lua
changeset 12933 e65aa3c3d4e6
parent 12624 705dde538519
child 13462 4c47a480009b
equal deleted inserted replaced
12932:e0da398805b6 12933:e65aa3c3d4e6
   857 			local toSpawn = cratesPerTurn
   857 			local toSpawn = cratesPerTurn
   858 			if cratesInGame + toSpawn > maxCrates then
   858 			if cratesInGame + toSpawn > maxCrates then
   859 				toSpawn = maxCrates - cratesInGame
   859 				toSpawn = maxCrates - cratesInGame
   860 			end
   860 			end
   861 			for i=1,toSpawn do
   861 			for i=1,toSpawn do
   862 				SpawnAmmoCrate(0, 0, weapons[1+GetRandom(#weapons)] )
   862 				SpawnSupplyCrate(0, 0, weapons[1+GetRandom(#weapons)] )
   863 			end
   863 			end
   864 			rPingTimer = 0
   864 			rPingTimer = 0
   865 			rAlpha = 0
   865 			rAlpha = 0
   866 			if toSpawn > 0 then
   866 			if toSpawn > 0 then
   867 				PlaySound(sndWarp)
   867 				PlaySound(sndWarp)