Fixed regression from 6e20d86941 in which flag OF_PLAYER_DROPPED in drop_powerup would only be set for OBJ_ROBOT but not OBJ_POWERUP, making the Guidebot unable to locate player spew

This commit is contained in:
zico 2016-12-04 21:39:03 +01:00
parent 34b24c0d69
commit bfe6149cdb

View file

@ -855,6 +855,10 @@ objptridx_t drop_powerup(int type, int id, int num, const vms_vector &init_vel,
Int3();
return object_none;
}
#if defined(DXX_BUILD_DESCENT_II)
if (player)
obj->flags |= OF_PLAYER_DROPPED;
#endif
if (Game_mode & GM_MULTI)
{