Skip to content

Commit 35e92ba

Browse files
Stop spawn fade timer on level reset (#3207)
This avoids teleporting Tux to the door's target spawnpoint when a level reset is done right after the door has been triggered. Fixes #3206
1 parent 00ecd01 commit 35e92ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/supertux/game_session.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ GameSession::reset_level()
119119
m_activated_checkpoint = nullptr;
120120
m_pause_target_timer = false;
121121
m_spawn_with_invincibility = false;
122+
m_spawn_fade_timer.stop();
122123

123124
m_data_table.clear();
124125
}

0 commit comments

Comments
 (0)