racing:: TWIDTH is now set depending on geometry

This commit is contained in:
Zeno Rogue 2018-12-04 21:17:31 +01:00
parent a6ffdc8676
commit 0a8b0c44d4
1 changed files with 4 additions and 1 deletions

View File

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