Skip to content

Commit

Permalink
qtscript: Trigger eventCheatMode before eventGameInit
Browse files Browse the repository at this point in the history
If cheat mode is enabled in some campaign mission,
it is carried over to the next mission.

But scripts of the next mission have no memory
of the previous level, so they need to be
explicitly informed that cheat mode
is still enabled.
  • Loading branch information
haoNoQ committed Nov 1, 2014
1 parent a7fe080 commit e43e57b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1310,6 +1310,8 @@ bool stageThreeInitialise(void)

if (getLevelLoadType() != GTYPE_SAVE_MIDMISSION)
{
if (getDebugMappingStatus())
triggerEventCheatMode(true);
eventFireCallbackTrigger((TRIGGER_TYPE)CALL_GAMEINIT);
triggerEvent(TRIGGER_GAME_INIT);
}
Expand Down

0 comments on commit e43e57b

Please sign in to comment.