Skip to content

Commit

Permalink
don't change level number before warp
Browse files Browse the repository at this point in the history
  • Loading branch information
Dregu committed Mar 20, 2021
1 parent a4d4f71 commit 6a9e64b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/game_api/state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,8 @@ void State::warp(uint8_t w, uint8_t l, uint8_t t)
{
if (ptr()->screen < 11 || ptr()->screen > 13)
return;
ptr()->world = w;
ptr()->world_next = w;
ptr()->level = l;
ptr()->level_next = l;
ptr()->theme = t;
ptr()->theme_next = t;
if (ptr()->world_start < 1 || ptr()->level_start < 1 || ptr()->theme_start < 1)
{
Expand Down

0 comments on commit 6a9e64b

Please sign in to comment.