Hid timer function parameters in a macro (#3311)
This commit is contained in:
@@ -105,7 +105,7 @@ int chlogif_send_acc_tologin_sub(DBKey key, DBData *data, va_list ap) {
|
||||
* @param data : data transmited for delayed function
|
||||
* @return
|
||||
*/
|
||||
int chlogif_send_acc_tologin(int tid, unsigned int tick, int id, intptr_t data) {
|
||||
TIMER_FUNC(chlogif_send_acc_tologin){
|
||||
if ( chlogif_isconnected() ){
|
||||
DBMap* online_char_db = char_get_onlinedb();
|
||||
// send account list to login server
|
||||
@@ -134,8 +134,7 @@ void chlogif_send_usercount(int users){
|
||||
}
|
||||
|
||||
|
||||
int chlogif_broadcast_user_count(int tid, unsigned int tick, int id, intptr_t data)
|
||||
{
|
||||
TIMER_FUNC(chlogif_broadcast_user_count){
|
||||
uint8 buf[6];
|
||||
int users = char_count_users();
|
||||
|
||||
@@ -761,7 +760,7 @@ int chlogif_parse(int fd) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int chlogif_check_connect_logserver(int tid, unsigned int tick, int id, intptr_t data) {
|
||||
TIMER_FUNC(chlogif_check_connect_logserver){
|
||||
if (login_fd > 0 && session[login_fd] != NULL)
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user