fix addtimer calls

This commit is contained in:
Fish 2005-08-09 12:17:31 +00:00
parent 1c1318d261
commit 9da76f5462
4 changed files with 9 additions and 9 deletions

6
bomb.c
View file

@ -32,7 +32,7 @@ typedef enum STOP_REASON
/* Prototypes */
void stopbomb( char *nic, STOP_REASON reason );
int timerupstopbomb(void);
int timerupstopbomb(void *);
/*
* Start Bomb Game
@ -42,7 +42,7 @@ int startbomb(CmdParams* cmdparams) {
return NS_SUCCESS;
}
irc_chanprivmsg (gs_bot, gameroom[GS_GAME_CHANNEL_BOMB], "\0037A Bomb has been brought into the channel by %s. Don''t be the last one with it.", cmdparams->source->name);
AddTimer (TIMER_TYPE_COUNTDOWN, timerupstopbomb, "bombcountdown", countdowntime[GS_GAME_CHANNEL_BOMB]);
AddTimer (TIMER_TYPE_COUNTDOWN, timerupstopbomb, "bombcountdown", countdowntime[GS_GAME_CHANNEL_BOMB], NULL);
return NS_SUCCESS;
}
@ -118,7 +118,7 @@ void stopbomb( char *nic, STOP_REASON reason )
/*
* Bomb Timer Finished
*/
int timerupstopbomb(void)
int timerupstopbomb(void *userptr)
{
stopbomb( NULL, STOP_NONE );
return NS_SUCCESS;

View file

@ -61,7 +61,7 @@ extern const char *gs_help_shoot[];
int startruss (CmdParams* cmdparams);
int shootruss (CmdParams* cmdparams);
void stopruss(char *nic, char *reason);
int timerupstopruss(void);
int timerupstopruss(void *);
/*
* HiLo Game Help
@ -75,7 +75,7 @@ extern const char *gs_help_guess[];
int starthilo(CmdParams* cmdparams);
int guesshilo(CmdParams* cmdparams);
void stophilo(char *nic, int hlg);
int timerupstophilo(void);
int timerupstophilo(void *);
/*
* Tic-Tac-Toe Game Help

4
hilo.c
View file

@ -37,7 +37,7 @@ int starthilo(CmdParams* cmdparams) {
num = (num_low + (rand() % 999) + 1);
num_high = (num_low + 1000);
irc_chanprivmsg (gs_bot, gameroom[GS_GAME_CHANNEL_HILO], "\0037A game of HiLo has been started by %s. Can you guess the number between %d and %d.", cmdparams->source->name, num_low, num_high);
AddTimer (TIMER_TYPE_COUNTDOWN, timerupstophilo, "hilocountdown", countdowntime[GS_GAME_CHANNEL_HILO]);
AddTimer (TIMER_TYPE_COUNTDOWN, timerupstophilo, "hilocountdown", countdowntime[GS_GAME_CHANNEL_HILO], NULL);
return NS_SUCCESS;
}
@ -83,7 +83,7 @@ void stophilo(char *nic, int hlg) {
/*
* HiLO Timer Finished
*/
int timerupstophilo(void) {
int timerupstophilo(void *userptr) {
stophilo( "", 0);
return NS_SUCCESS;
}

View file

@ -31,7 +31,7 @@ int startruss(CmdParams* cmdparams) {
return NS_SUCCESS;
}
irc_chanprivmsg (gs_bot, gameroom[GS_GAME_CHANNEL_RUSS], "\0037Russian Roulette has been started by %s. Who will die this time?", cmdparams->source->name);
AddTimer (TIMER_TYPE_COUNTDOWN, timerupstopruss, "russcountdown", countdowntime[GS_GAME_CHANNEL_RUSS]);
AddTimer (TIMER_TYPE_COUNTDOWN, timerupstopruss, "russcountdown", countdowntime[GS_GAME_CHANNEL_RUSS], NULL);
return NS_SUCCESS;
}
@ -117,7 +117,7 @@ void stopruss(char *nic, char *reason) {
/*
* Russian Roulette Timer Finished
*/
int timerupstopruss(void) {
int timerupstopruss(void *userptr) {
stopruss( "", "");
return NS_SUCCESS;
}