projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update helpers/location to 'frosted' ui
[carveJwlIkooP6JGAAIwe30JlM.git]
/
entity.c
diff --git
a/entity.c
b/entity.c
index ae506bd68fdc04fc39807abafc9cd1d5afaadb76..ffb5deed5d9c0c9e905e1c39335b80c8173e04fe 100644
(file)
--- a/
entity.c
+++ b/
entity.c
@@
-11,6
+11,9
@@
#include "ent_region.h"
#include "ent_glider.h"
#include "ent_npc.h"
#include "ent_region.h"
#include "ent_glider.h"
#include "ent_npc.h"
+#include "world_water.h"
+
+#include <string.h>
void entity_call( world_instance *world, ent_call *call )
{
void entity_call( world_instance *world, ent_call *call )
{
@@
-30,7
+33,8
@@
void entity_call( world_instance *world, ent_call *call )
[k_ent_miniworld] = ent_miniworld_call,
[k_ent_region] = ent_region_call,
[k_ent_glider] = ent_glider_call,
[k_ent_miniworld] = ent_miniworld_call,
[k_ent_region] = ent_region_call,
[k_ent_glider] = ent_glider_call,
- [k_ent_npc] = ent_npc_call
+ [k_ent_npc] = ent_npc_call,
+ [k_ent_water] = ent_water_call,
};
if( type >= vg_list_size(table) ){
};
if( type >= vg_list_size(table) ){
@@
-58,10
+62,12
@@
void entity_call( world_instance *world, ent_call *call )
ent_marker *ent_find_marker( mdl_context *mdl, mdl_array_ptr *arr,
const char *alias )
{
ent_marker *ent_find_marker( mdl_context *mdl, mdl_array_ptr *arr,
const char *alias )
{
- for( u32 i=0; i<mdl_arrcount(arr); i++ ){
+ for( u32 i=0; i<mdl_arrcount(arr); i++ )
+ {
ent_marker *marker = mdl_arritm( arr, i );
ent_marker *marker = mdl_arritm( arr, i );
- if( !strcmp( mdl_pstr( mdl, marker->pstr_alias ), alias ) ){
+ if( !strcmp( mdl_pstr( mdl, marker->pstr_alias ), alias ) )
+ {
return marker;
}
}
return marker;
}
}