moved
int pc_alive_timer(int tid,unsigned int tick,int id,int git-svn-id: https://svn.code.sf.net/p/rathena/svn/branches/stable@665 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
6dc1ff8f25
commit
db1768300e
25
src/map/pc.c
25
src/map/pc.c
@ -7694,6 +7694,20 @@ int map_night_timer(int tid, unsigned int tick, int id, int data) { // by [yor]
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*==========================================
|
||||
* I'm alive timer (to prevent double connect bug) by Valaris
|
||||
*------------------------------------------
|
||||
*/
|
||||
int pc_alive_timer(int tid,unsigned int tick,int id,int data)
|
||||
{
|
||||
struct map_session_data *sd=(struct map_session_data*)map_id2bl(id);
|
||||
nullpo_retr(0, sd);
|
||||
if(sd->alive_timer != tid)
|
||||
return 0;
|
||||
map_quit(sd);
|
||||
return 0;
|
||||
}
|
||||
|
||||
void pc_setstand(struct map_session_data *sd){
|
||||
nullpo_retv(sd);
|
||||
|
||||
@ -8111,14 +8125,3 @@ int do_init_pc(void) {
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
//Valaris
|
||||
int pc_alive_timer(int tid,unsigned int tick,int id,int data)
|
||||
{
|
||||
struct map_session_data *sd=(struct map_session_data*)map_id2bl(id);
|
||||
nullpo_retr(0, sd);
|
||||
if(sd->alive_timer != tid)
|
||||
return 0;
|
||||
map_quit(sd);
|
||||
return 0;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user