diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2011-03-24 22:57:06 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2011-03-24 22:57:06 -0700 |
commit | deec3c27f91a97d35aaf912422d1249ec609da05 (patch) | |
tree | ea9667aa5db695e88b8c0e00c07df57aa38a38b1 /src/common/timer.h | |
parent | ef740ac0479a5a4f4240db63b84531599a26a983 (diff) | |
download | tmwa-deec3c27f91a97d35aaf912422d1249ec609da05.tar.gz tmwa-deec3c27f91a97d35aaf912422d1249ec609da05.tar.bz2 tmwa-deec3c27f91a97d35aaf912422d1249ec609da05.tar.xz tmwa-deec3c27f91a97d35aaf912422d1249ec609da05.zip |
Fix accidentally-named interdb_val_t
Diffstat (limited to 'src/common/timer.h')
-rw-r--r-- | src/common/timer.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/timer.h b/src/common/timer.h index 2a38e04..e363a56 100644 --- a/src/common/timer.h +++ b/src/common/timer.h @@ -13,7 +13,7 @@ enum TIMER_TYPE // TODO replace with signed 64-bit to make code more clear and protect from the future typedef uint32_t tick_t; -typedef uint32_t interdb_val_t; +typedef uint32_t interval_t; typedef uint32_t timer_id; // BUG: pointers are stored in here typedef int32_t custom_id_t; @@ -33,7 +33,7 @@ struct TimerData /// Type of timer - 0 initially enum TIMER_TYPE type; /// Repeat rate - interdb_val_t interval; + interval_t interval; }; /// Server time, in milliseconds, since the epoch, @@ -46,14 +46,14 @@ tick_t gettick_nocache (void); tick_t gettick (void); timer_id add_timer (tick_t, timer_func, custom_id_t, custom_data_t); -timer_id add_timer_interval (tick_t, timer_func, custom_id_t, custom_data_t, interdb_val_t); +timer_id add_timer_interval (tick_t, timer_func, custom_id_t, custom_data_t, interval_t); void delete_timer (timer_id, timer_func); -tick_t addtick_timer (timer_id, interdb_val_t); +tick_t addtick_timer (timer_id, interval_t); struct TimerData *get_timer (timer_id tid); /// Do all timers scheduled before tick, and return the number of milliseconds until the next timer happens -interdb_val_t do_timer (tick_t tick); +interval_t do_timer (tick_t tick); |