Skip to content

Commit

Permalink
Don't overwrite the movement direction when the page changes, only th…
Browse files Browse the repository at this point in the history
…e sprite direction.

Otherwise this causes glitchy movement when an event page switches to an event with a fixed event graphic while a move is being executed.

Fix EasyRPG#1413
  • Loading branch information
Ghabry committed Sep 3, 2018
1 parent e146992 commit 95a84df
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/game_event.cpp
Expand Up @@ -282,7 +282,6 @@ void Game_Event::Setup(const RPG::EventPage* new_page) {

if (from_null || !(same_direction_as_on_old_page || IsMoving()) || IsDirectionFixed()) {
SetSpriteDirection(page->character_direction);
SetDirection(page->character_direction);
}

SetOpacity(page->translucent ? 160 : 255);
Expand Down

0 comments on commit 95a84df

Please sign in to comment.