projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7117631
)
absolutely SHIT bug
author
hgn
<hgodden00@gmail.com>
Tue, 19 Sep 2023 10:15:28 +0000
(11:15 +0100)
committer
hgn
<hgodden00@gmail.com>
Tue, 19 Sep 2023 10:15:28 +0000
(11:15 +0100)
world_render.c
patch
|
blob
|
history
diff --git
a/world_render.c
b/world_render.c
index 9e5527bd435928645384b00cb664f3bfb452e9e0..2cbd07beaecd4519cb1920cc9f787b03acb81c0d 100644
(file)
--- a/
world_render.c
+++ b/
world_render.c
@@
-417,6
+417,7
@@
void world_render_challenges( world_instance *world, struct world_pass *pass,
v3f pos, int layer_depth ){
if( !world ) return;
if( skaterift.activity == k_skaterift_replay ) return;
v3f pos, int layer_depth ){
if( !world ) return;
if( skaterift.activity == k_skaterift_replay ) return;
+ if( world != world_current_instance() ) return;
/* sort lists */
f32 radius = 40.0f;
/* sort lists */
f32 radius = 40.0f;
@@
-453,7
+454,7
@@
void world_render_challenges( world_instance *world, struct world_pass *pass,
while( mdl_entity_id_type(next) == k_ent_objective ){
u32 index = mdl_entity_id_id( next );
objective_list[ objective_count ++ ] = index;
while( mdl_entity_id_type(next) == k_ent_objective ){
u32 index = mdl_entity_id_id( next );
objective_list[ objective_count ++ ] = index;
-
+
ent_objective *objective = mdl_arritm( &world->ent_objective, index );
next = objective->id_next;
}
ent_objective *objective = mdl_arritm( &world->ent_objective, index );
next = objective->id_next;
}