mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 22:12:59 +00:00 
			
		
		
		
	racing:: TWIDTH is now set depending on geometry
This commit is contained in:
		| @@ -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()); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue