mirror of
https://github.com/phoboslab/wipeout-rewrite
synced 2024-12-26 09:59:04 +01:00
Remove obsolete TRACK_*_MAX defines and struct fields
This commit is contained in:
parent
2430297998
commit
530fb40fb7
2 changed files with 2 additions and 17 deletions
|
@ -81,8 +81,6 @@ void track_load(const char *base_path) {
|
|||
}
|
||||
face++;
|
||||
}
|
||||
|
||||
error_if(g.track.pickups_len > TRACK_PICKUPS_MAX-1, "Track %s exceeds TRACK_PICKUPS_MAX", base_path);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -228,12 +226,8 @@ void track_load_sections(char *file_name) {
|
|||
p += 5 * 3 * 4; // view section pointers
|
||||
p += 5 * 3 * 2; // view section counts
|
||||
|
||||
for (int j = 0; j < 4; j++) {
|
||||
ts->high[j] = get_i16(bytes, &p);
|
||||
}
|
||||
for (int j = 0; j < 4; j++) {
|
||||
ts->med[j] = get_i16(bytes, &p);
|
||||
}
|
||||
p += 4 * 2; // high list
|
||||
p += 4 * 2; // med list
|
||||
|
||||
ts->face_start = get_i16(bytes, &p);
|
||||
ts->face_count = get_i16(bytes, &p);
|
||||
|
@ -256,7 +250,6 @@ void track_draw_section(section_t *section) {
|
|||
track_face_t *face = g.track.faces + section->face_start;
|
||||
int16_t face_count = section->face_count;
|
||||
|
||||
|
||||
for (uint32_t j = 0; j < face_count; j++) {
|
||||
uint16_t tex_index = texture_from_list(g.track.textures, face->texture);
|
||||
render_push_tris(face->tris[0], tex_index);
|
||||
|
|
|
@ -8,11 +8,6 @@
|
|||
|
||||
#define TRACK_VERSION 8
|
||||
|
||||
#define TRACK_VERTS_MAX 4096
|
||||
#define TRACK_FACES_MAX 3072
|
||||
#define TRACK_SECTIONS_MAX 1024
|
||||
#define TRACK_PICKUPS_MAX 64
|
||||
|
||||
#define TRACK_PICKUP_COOLDOWN_TIME 1
|
||||
|
||||
#define TRACK_SEARCH_LOOK_BACK 3
|
||||
|
@ -52,9 +47,6 @@ typedef struct section_t {
|
|||
|
||||
vec3_t center;
|
||||
|
||||
int16_t high[4];
|
||||
int16_t med[4];
|
||||
|
||||
int16_t face_start;
|
||||
int16_t face_count;
|
||||
|
||||
|
|
Loading…
Reference in a new issue