projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
model fmt & heisenbug
[carveJwlIkooP6JGAAIwe30JlM.git]
/
world_render.h
diff --git
a/world_render.h
b/world_render.h
index a73998a778888c9a573dedf582f89195783059b2..d2e615d2b754d9813b7d97e3846a8e8bd4e1e457 100644
(file)
--- a/
world_render.h
+++ b/
world_render.h
@@
-176,6
+176,9
@@
VG_STATIC void render_sky(m4x3f camera)
VG_STATIC void render_world_gates( m4x4f projection, v3f playerco, m4x3f camera )
{
VG_STATIC void render_world_gates( m4x4f projection, v3f playerco, m4x3f camera )
{
+ if( !world.gate_count )
+ return;
+
float closest = INFINITY;
int id = 0;
float closest = INFINITY;
int id = 0;
@@
-209,6
+212,9
@@
VG_STATIC void render_world( m4x4f projection, m4x3f camera )
int closest = 0;
float min_dist = INFINITY;
int closest = 0;
float min_dist = INFINITY;
+ if( !world.route_count )
+ return;
+
for( int i=0; i<world.route_count; i++ )
{
float dist = v3_dist2( world.routes[i].scoreboard_transform[3],
for( int i=0; i<world.route_count; i++ )
{
float dist = v3_dist2( world.routes[i].scoreboard_transform[3],
@@
-222,7
+228,7
@@
VG_STATIC void render_world( m4x4f projection, m4x3f camera )
}
sfd_render( projection, camera[3],
}
sfd_render( projection, camera[3],
- world.routes[closest].scoreboard_transform );
+
world.routes[closest].scoreboard_transform );
}
VG_STATIC void render_world_depth( m4x4f projection, m4x3f camera )
}
VG_STATIC void render_world_depth( m4x4f projection, m4x3f camera )