summaryrefslogtreecommitdiff
path: root/src/state.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.c')
-rw-r--r--src/state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state.c b/src/state.c
index 08d9f37..b5fcdc3 100644
--- a/src/state.c
+++ b/src/state.c
@@ -22,7 +22,7 @@ const char* StateTypeStr[] = {
typedef struct name##_state name##_state; \
typedef void(state_##name##_init_t)(name##_state*,void*); \
typedef void*(state_##name##_free_t)(name##_state*); \
- typedef StateType(state_##name##_update_t)(name##_state*);
+ typedef StateType(state_##name##_update_t)(f64,name##_state*);
#include <states/list_of_states.h>
#undef State
@@ -123,7 +123,7 @@ StateType State_update(StateType type, f64 dt, memory* mem) {
switch (type) {
#define State(name) \
case (STATE_##name): { \
- next_state = name##_update(mem->data); \
+ next_state = name##_update(dt, mem->data); \
break; \
}
#include <states/list_of_states.h>