mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-01 21:10:35 +00:00
racing:: TWIDTH is now set depending on geometry
This commit is contained in:
parent
a6ffdc8676
commit
0a8b0c44d4
@ -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());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user