Allow access to all missions when using -debug.
This commit is contained in:
parent
fe9c49244f
commit
c00c134b70
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue