Direction_pdir;// Direction faced by player (direction enum)
int_pgfxnum;// Bitmask indicating what variant of the sprite the player is using. Lower byte define weapon (PlayerWeaponGraphic) and higher values define armour (starting with PlayerArmorGraphic)
@ -710,21 +711,30 @@ struct Player {
/** @brief Checks if the player is on the same level as the local player (MyPlayer). */
boolisOnActiveLevel()const
{
returncurrlevel==this->plrlevel;
if(setlevel)
returnisOnLevel(setlvlnum);
returnisOnLevel(currlevel);
}
/** @brief Checks if the player is on the correspondig level. */