Skip to content

Commit

Permalink
Initialize powerup flags at level load
Browse files Browse the repository at this point in the history
  • Loading branch information
vLKp committed Jul 7, 2019
1 parent a10077f commit d413a5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions similar/main/gamesave.cpp
Expand Up @@ -483,6 +483,10 @@ static void read_object(const vmobjptr_t obj,PHYSFS_File *f,int version)

if (obj->type == OBJ_POWERUP)
{
/* Objects loaded from a level file were not ejected by
* the player.
*/
obj->ctype.powerup_info.flags = 0;
/* Hostages have control type CT_POWERUP, but object
* type OBJ_HOSTAGE. Hostages are never weapons, so
* prevent checking their IDs.
Expand Down

0 comments on commit d413a5d

Please sign in to comment.