projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(50c0271)
[carveJwlIkooP6JGAAIwe30JlM.git]
/
ent_glider.c
diff --git
a/ent_glider.c
b/ent_glider.c
index dbea8eadaaaecb0d425ce7780055c496051403e7..12b05757cd1ce1c30e9ab933361d69bb475fd9a2 100644
(file)
--- a/
ent_glider.c
+++ b/
ent_glider.c
@@
-2,21
+2,24
@@
#include "entity.h"
#include "player_glide.h"
#include "entity.h"
#include "player_glide.h"
-
void
ent_glider_call( world_instance *world, ent_call *call )
+
entity_call_result
ent_glider_call( world_instance *world, ent_call *call )
{
u32 index = mdl_entity_id_id( call->id );
ent_glider *glider = mdl_arritm( &world->ent_glider, index );
{
u32 index = mdl_entity_id_id( call->id );
ent_glider *glider = mdl_arritm( &world->ent_glider, index );
- if( call->function == 0 ){
+ if( call->function == 0 )
+ {
glider->flags |= 0x1;
glider->flags |= 0x1;
+ return k_entity_call_result_OK;
}
}
- else if( call->function == 1 ){
- if( glider->flags & 0x1 ){
+ else if( call->function == 1 )
+ {
+ if( glider->flags & 0x1 )
+ {
player_glide_equip_glider();
}
player_glide_equip_glider();
}
+ return k_entity_call_result_OK;
}
}
- else {
- vg_print_backtrace();
- vg_error( "Unhandled function id: %i\n", call->function );
- }
+ else
+ return k_entity_call_result_unhandled;
}
}