Allow access to all missions when using -debug.

This commit is contained in:
Steve 2016-03-27 11:08:44 +01:00
parent fe9c49244f
commit c00c134b70
2 changed files with 2 additions and 1 deletions

View File

@ -460,7 +460,7 @@ void updateAllMissions(void)
int isMissionAvailable(Mission *mission, Mission *prev)
{
return prev->completed && mission->requires <= game.completedMissions;
return (prev->completed && mission->requires <= game.completedMissions) || dev.debug;
}
static unsigned long hashcode(const char *str)

View File

@ -59,5 +59,6 @@ extern void loadLocations(cJSON *node);
extern void loadSpawners(cJSON *node);
extern Battle battle;
extern Dev dev;
extern Entity *player;
extern Game game;