Continental supplies: Bots select random continent
authorWuzzy <Wuzzy2@mail.ru>
Fri, 14 Jun 2019 17:05:00 +0200
changeset 15136 309aa93df110
parent 15135 7a8cc8bc963e
child 15137 651c1737be2a
Continental supplies: Bots select random continent
share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua
--- a/share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua	Thu Jun 13 15:07:03 2019 +0200
+++ b/share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua	Fri Jun 14 17:05:00 2019 +0200
@@ -1201,6 +1201,11 @@
 			InitWeaponsMenu(CurrentHedgehog)
 			CS.TEAM_CONTINENT[GetHogTeamName(CurrentHedgehog)]=0
 			CS.INIT_TEAMS[GetHogTeamName(CurrentHedgehog)] = 2
+			if GetHogLevel(CurrentHedgehog) ~= 0 then
+				-- Set random continent for bots
+				SetWeapon(amNothing)
+				CS.CONFIRM_CONTINENT_SELECTION=500
+			end
 
 		else
 			--if its not the initialization turn