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:
zico 2016-05-30 15:00:07 +02:00
parent e335cdacb3
commit 660d18c312

View file

@ -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);