Hid timer function parameters in a macro (#3311)

This commit is contained in:
Lemongrass3110
2018-07-15 23:17:15 +02:00
committed by GitHub
parent ec1d6d28d7
commit c4d7dc76d3
49 changed files with 160 additions and 207 deletions

View File

@@ -23,7 +23,7 @@
static DBMap* auction_db_ = NULL; // int auction_id -> struct auction_data*
void auction_delete(struct auction_data *auction);
int auction_end_timer(int tid, unsigned int tick, int id, intptr_t data);
TIMER_FUNC(auction_end_timer);
int auction_count(uint32 char_id, bool buy)
{
@@ -151,8 +151,7 @@ void mapif_Auction_message(uint32 char_id, unsigned char result)
chmapif_sendall(buf,7);
}
int auction_end_timer(int tid, unsigned int tick, int id, intptr_t data)
{
TIMER_FUNC(auction_end_timer){
struct auction_data *auction;
if( (auction = (struct auction_data *)idb_get(auction_db_, id)) != NULL )
{