summaryrefslogtreecommitdiff
path: root/src/map/party.cpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-02-09 01:51:36 -0800
committerBen Longbons <b.r.longbons@gmail.com>2013-02-12 20:21:34 -0800
commit80e36aa669274637bcd5956fbf4020dba1d4739c (patch)
tree2f5d3a63a5f7230ab73cd588e3493c0664a5a73b /src/map/party.cpp
parent83b2e0b3ceda907b7186acfcc56c214fc04d9c13 (diff)
downloadtmwa-80e36aa669274637bcd5956fbf4020dba1d4739c.tar.gz
tmwa-80e36aa669274637bcd5956fbf4020dba1d4739c.tar.bz2
tmwa-80e36aa669274637bcd5956fbf4020dba1d4739c.tar.xz
tmwa-80e36aa669274637bcd5956fbf4020dba1d4739c.zip
Strictify timers
Diffstat (limited to 'src/map/party.cpp')
-rw-r--r--src/map/party.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/party.cpp b/src/map/party.cpp
index b422e04..f6cb84b 100644
--- a/src/map/party.cpp
+++ b/src/map/party.cpp
@@ -18,7 +18,7 @@
#include "../poison.hpp"
// 座標やHP送信の間隔
-constexpr int PARTY_SEND_XYHP_INVERVAL = 1000;
+constexpr interval_t PARTY_SEND_XYHP_INVERVAL = std::chrono::seconds(1);
static
struct dbt *party_db;
@@ -26,15 +26,15 @@ struct dbt *party_db;
static
int party_check_conflict(struct map_session_data *sd);
static
-void party_send_xyhp_timer(timer_id tid, tick_t tick, custom_id_t id, custom_data_t data);
+void party_send_xyhp_timer(TimerData *tid, tick_t tick);
// 初期化
void do_init_party(void)
{
party_db = numdb_init();
add_timer_interval(gettick() + PARTY_SEND_XYHP_INVERVAL,
- party_send_xyhp_timer, 0, 0,
- PARTY_SEND_XYHP_INVERVAL);
+ party_send_xyhp_timer,
+ PARTY_SEND_XYHP_INVERVAL);
}
// 検索
@@ -664,7 +664,7 @@ void party_send_xyhp_timer_sub(db_key_t, db_val_t data)
}
// 位置やHP通知
-void party_send_xyhp_timer(timer_id, tick_t, custom_id_t, custom_data_t)
+void party_send_xyhp_timer(TimerData *, tick_t)
{
numdb_foreach(party_db, party_send_xyhp_timer_sub);
}