Removed resumingMission field.
This commit is contained in:
parent
46d6ce1cd6
commit
25cf4f2814
|
@ -604,14 +604,11 @@ void resetAtCheckpoint(void)
|
||||||
changeSprite(walkSprite);
|
changeSprite(walkSprite);
|
||||||
world.bob->environment = ENV_AIR;
|
world.bob->environment = ENV_AIR;
|
||||||
|
|
||||||
if (!game.isResumingMission)
|
world.bob->immuneTimer = FPS * 2;
|
||||||
|
addTeleportStars((Entity*)world.bob);
|
||||||
|
if (world.state == WS_IN_PROGRESS)
|
||||||
{
|
{
|
||||||
world.bob->immuneTimer = FPS * 2;
|
playSound(SND_APPEAR, CH_ANY);
|
||||||
addTeleportStars((Entity*)world.bob);
|
|
||||||
if (world.state == WS_IN_PROGRESS)
|
|
||||||
{
|
|
||||||
playSound(SND_APPEAR, CH_ANY);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -366,7 +366,6 @@ typedef struct {
|
||||||
int totalKeys;
|
int totalKeys;
|
||||||
unsigned int stats[STAT_MAX];
|
unsigned int stats[STAT_MAX];
|
||||||
char worldId[MAX_NAME_LENGTH];
|
char worldId[MAX_NAME_LENGTH];
|
||||||
int isResumingMission;
|
|
||||||
int isComplete;
|
int isComplete;
|
||||||
Tuple keys[MAX_KEY_TYPES];
|
Tuple keys[MAX_KEY_TYPES];
|
||||||
Tuple missionStatusHead, *missionStatusTail;
|
Tuple missionStatusHead, *missionStatusTail;
|
||||||
|
|
|
@ -99,11 +99,6 @@ void initWorld(void)
|
||||||
{
|
{
|
||||||
playMusic(1);
|
playMusic(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!game.isResumingMission)
|
|
||||||
{
|
|
||||||
game.stats[STAT_MISSIONS_PLAYED]++;
|
|
||||||
}
|
|
||||||
|
|
||||||
world.bob->flags |= EF_GONE;
|
world.bob->flags |= EF_GONE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue