Skip to content

Commit

Permalink
Fixed DDR's reported bug with teleporting.
Browse files Browse the repository at this point in the history
  • Loading branch information
sweetkristas committed Jun 30, 2012
1 parent eda7d7e commit 7af3c3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/level_runner.cpp
Expand Up @@ -785,7 +785,7 @@ bool level_runner::play_cycle()
game_logic::map_formula_callable_ptr callable(new game_logic::map_formula_callable());
callable->add("new_playable", variant(portal->new_playable.get()));
player->get_entity().handle_event("player_change_on_teleport", callable.get());
lvl_->player()->set_entity(*portal->new_playable);
lvl_->add_player(portal->new_playable);
player = lvl_->player();
}

Expand Down Expand Up @@ -868,7 +868,7 @@ bool level_runner::play_cycle()
game_logic::map_formula_callable_ptr callable(new game_logic::map_formula_callable());
callable->add("new_playable", variant(portal->new_playable.get()));
player->get_entity().handle_event("player_change_on_teleport", callable.get());
lvl_->player()->set_entity(*portal->new_playable);
lvl_->add_player(portal->new_playable);
player = lvl_->player();
}

Expand Down

0 comments on commit 7af3c3a

Please sign in to comment.