From 0a8b0c44d4282778c111346a22f996b7935a4b5b Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 4 Dec 2018 21:17:31 +0100 Subject: [PATCH] racing:: TWIDTH is now set depending on geometry --- racing.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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());