mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
srb2::Mobj: fix state call on player
This commit is contained in:
parent
3c1e13084b
commit
52449bdb5e
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ struct Mobj : mobj_t
|
|||
statenum_t num() const { return static_cast<statenum_t>(static_cast<const state_t*>(this) - states); }
|
||||
};
|
||||
|
||||
void state(statenum_t state) { P_SetMobjState(this, state); }
|
||||
void state(statenum_t state) { (player ? P_SetPlayerMobjState : P_SetMobjState)(this, state); }
|
||||
const State* state() const { return static_cast<const State*>(mobj_t::state); }
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue