LoW: Initialize units in start events

previously this was done in side 1 turn 1 events because start events
wasn't synced.

After the fix for 21933 players now loose when they have no units after
start events, so we need to do this in a start event.

replacing check_victory with check_end_level after start events in
play_controller.cpp line 572 doesn't work because we still have the
check_victory in playmp_controller when waiting
for remote packages, that check_victory is needed in order to sync the
behavior of ai turns which calls check_victory after every action on the
local client.
This commit is contained in:
gfgtdf 2014-04-20 00:12:49 +02:00
parent 751870cb82
commit ad9d70fcc1
4 changed files with 4 additions and 4 deletions

View file

@ -199,7 +199,7 @@ Chapter Two"
[event]
#Used this instead of prestart since global variables aren't synced before
name=side 1 turn 1
name=start
[objectives]
{OBJECTIVES}
[/objectives]

View file

@ -164,7 +164,7 @@ Chapter Three"
#### Concentrated every wml related to the game setup into this single event ####
[event]
name=side 1 turn 1
name=start
# wmllint: recognize Arkildur
# wmllint: recognize Tameril-Isimeril

View file

@ -89,7 +89,7 @@
#endif
[event]
name=side 1 turn 1
name=start
#ifdef MULTIPLAYER
{GET_PERSISTENT_RECALLS_FROM4 1 2 3 4 LoW_Chapter_One kalenz}

View file

@ -348,7 +348,7 @@ Chapter Four"
[/side]
[event]
name=side 1 turn 1
name=start
#ifdef MULTIPLAYER
{GET_PERSISTENT_RECALLS_FROM4 1 5 6 7 LoW_Chapter_Three kalenz}