File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -726,17 +726,16 @@ void ProcessGameMessagePackets()
726726 player._pBaseMag = pkt->bmag ;
727727 player._pBaseDex = pkt->bdex ;
728728
729- const uint8_t rawDir = pkt->pdir ;
730- if (rawDir <= static_cast <uint8_t >(Direction::SouthEast)) {
731- const Direction newDir = static_cast <Direction>(rawDir);
732- if (player._pdir != newDir && player._pmode == PM_STAND) {
733- player._pdir = newDir;
734- StartStand (player, newDir);
735- }
736- }
737-
738729 if (!cond && player.plractive && !player.hasNoLife ()) {
739730 if (player.isOnActiveLevel () && !player._pLvlChanging ) {
731+ const uint8_t rawDir = pkt->pdir ;
732+ if (rawDir <= static_cast <uint8_t >(Direction::SouthEast)) {
733+ const Direction newDir = static_cast <Direction>(rawDir);
734+ if (player._pdir != newDir && player._pmode == PM_STAND) {
735+ player._pdir = newDir;
736+ StartStand (player, newDir);
737+ }
738+ }
740739 if (player.position .tile .WalkingDistance (syncPosition) > 3 && PosOkPlayer (player, syncPosition)) {
741740 // got out of sync, clear the tiles around where we last thought the player was located
742741 FixPlrWalkTags (player);
You can’t perform that action at this time.
0 commit comments