MascaraSnake is a bully and will make a pariah out of me in front of his doctoral student colleagues if I don't change this

This commit is contained in:
toaster 2019-11-26 17:10:59 -05:00
parent 6ac44415fb
commit c55a6cb3f8
1 changed files with 2 additions and 4 deletions

View File

@ -148,16 +148,14 @@ void P_ResetStarposts(void)
//
boolean P_CanPickupItem(player_t *player, boolean weapon)
{
soniccheck:
if (!player->mo || player->mo->health <= 0)
return false;
if (player->bot)
{
if (weapon || players[consoleplayer].bot)
if (weapon)
return false;
player = &players[consoleplayer];
goto soniccheck;
return P_CanPickupItem(&players[consoleplayer], true); // weapon is true to prevent infinite recursion if p1 is bot - doesn't occur in vanilla, but may be relevant for mods
}
if (player->powers[pw_flashing] > (flashingtics/4)*3 && player->powers[pw_flashing] < UINT16_MAX)