projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
render placeholder boards at store
[carveJwlIkooP6JGAAIwe30JlM.git]
/
world_entity.c
diff --git
a/world_entity.c
b/world_entity.c
index 04bbec9891749740e2cc8d51534e710b16371077..947a3bdc387c11a13ffa6b980231c5e42fefa619 100644
(file)
--- a/
world_entity.c
+++ b/
world_entity.c
@@
-81,12
+81,14
@@
static void world_entity_focus_preupdate(void){
/* additional renderings like text etc.. */
static void world_entity_focus_render(void){
/* additional renderings like text etc.. */
static void world_entity_focus_render(void){
- if( skaterift.activity != k_skaterift_ent_focus )
+ world_instance *world = world_current_instance();
+ if( skaterift.activity != k_skaterift_ent_focus ){
+ skateshop_render_nonfocused( world, &skaterift.cam );
return;
return;
+ }
u32 type = mdl_entity_id_type( world_static.focused_entity ),
index = mdl_entity_id_id( world_static.focused_entity );
u32 type = mdl_entity_id_type( world_static.focused_entity ),
index = mdl_entity_id_id( world_static.focused_entity );
- world_instance *world = world_current_instance();
if( type == k_ent_skateshop ){
ent_skateshop *skateshop = mdl_arritm( &world->ent_skateshop, index );
if( type == k_ent_skateshop ){
ent_skateshop *skateshop = mdl_arritm( &world->ent_skateshop, index );