Skip to content

Commit

Permalink
Merge pull request #3 from Ghabry/events
Browse files Browse the repository at this point in the history
Layered common events misbehave
  • Loading branch information
fdelapena committed Dec 12, 2013
2 parents 6e43905 + c38547c commit 0a611d4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/game_interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,9 @@ bool Game_Interpreter::SkipTo(int code, int code2, int min_indent, int max_inden
index = idx;
return true;
}

return false;
// if you do not find it set the page size so the easy do not stuck
index = list.size()-1;
return true;
}

// Execute Command.
Expand Down
2 changes: 1 addition & 1 deletion src/game_interpreter.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class Game_Interpreter
bool main_flag;

int loop_count;

bool move_route_waiting;

int button_input_variable_id;
Expand Down
2 changes: 2 additions & 0 deletions src/game_interpreter_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,8 @@ bool Game_Interpreter_Map::CommandRecallToLocation(RPG::EventCommand const& com)
}

Main_Data::game_player->ReserveTeleport(map_id, x, y);
Main_Data::game_player->StartTeleport();

index++;

return false;
Expand Down
2 changes: 1 addition & 1 deletion src/window_message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ void Window_Message::Update() {
Window_Selectable::Update();
number_input_window->Update();

if (visible && !Game_Message::visible) {
if (!IsNextMessagePossible() && visible && !Game_Message::visible) {
// The Event Page ended but the MsgBox was used in this Event
// It can be closed now.
TerminateMessage();
Expand Down

0 comments on commit 0a611d4

Please # to comment.