diff --git a/racing.cpp b/racing.cpp index 5bf2fe91..e74d3b7f 100644 --- a/racing.cpp +++ b/racing.cpp @@ -13,8 +13,9 @@ bool on; bool player_relative = false; bool track_ready; +int TWIDTH; + static const int LENGTH = 250; -static const int TWIDTH = 6; static const int DROP = 1; int ghosts_to_show = 5; @@ -173,6 +174,8 @@ ld start_line_width; void generate_track() { + TWIDTH = getDistLimit() - 1; + if(race_ghosts[{track_code, modecode()}].empty()) read_ghosts(track_code, modecode());