Skip to content

Commit

Permalink
Fixed|Server|libcommon: Player's weapon was undefined after map change
Browse files Browse the repository at this point in the history
Now the player's ready weapon is always updated after the map changes
and the players are respawned. The bug occurred at least in Heretic.
  • Loading branch information
skyjake committed Mar 16, 2013
1 parent 49baf2b commit 6f56709
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doomsday/plugins/common/src/p_start.c
Expand Up @@ -581,6 +581,8 @@ void P_SpawnPlayer(int plrNum, playerclass_t pClass, coord_t x, coord_t y, coord

p->brain.changeWeapon = WT_NOCHANGE;

p->update |= PSF_READY_WEAPON | PSF_PENDING_WEAPON;

// Setup gun psprite.
P_SetupPsprites(p);

Expand Down

0 comments on commit 6f56709

Please sign in to comment.