Check for GM_MULTI together with Netgame.InvulAppear in init_player_stats_new_ship(). Otherwise going into Singleplayer after starting a Multiplayer match with this option set can translate this effect into Singleplayer.
This commit is contained in:
parent
e335cdacb3
commit
660d18c312
|
@ -419,7 +419,7 @@ void init_player_stats_new_ship(ubyte pnum)
|
|||
DXX_MAKE_VAR_UNDEFINED(player_info.invulnerable_time);
|
||||
if (pnum == Player_num)
|
||||
{
|
||||
if (Netgame.InvulAppear)
|
||||
if (Game_mode & GM_MULTI && Netgame.InvulAppear)
|
||||
{
|
||||
player_info.powerup_flags |= PLAYER_FLAGS_INVULNERABLE;
|
||||
player_info.invulnerable_time = GameTime64 - (i2f(58 - Netgame.InvulAppear) >> 1);
|
||||
|
|
Loading…
Reference in a new issue