From 3d41fadd2f1a6fb3165559af5c010a164fa875df Mon Sep 17 00:00:00 2001 From: skotlex Date: Fri, 2 Mar 2007 16:39:33 +0000 Subject: - Modified set_reg so that it returns whether it succeeded or not in setting the requested variable. - Externalized battle skill range and blewcount bonus into their own static functions (battle_range_type & battle_blewcount_bonus). - Sped up the skill range flag setting code. - Added automatic support of damagesplit. This means that if a skill's nk value includes damage split among targets, it will do a divide by the number of targets (whereas before the list of skills where this worked was hardcoded) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9950 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/char/char.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/char') diff --git a/src/char/char.c b/src/char/char.c index 1e95d7644..2f6c0e2f5 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -2031,7 +2031,7 @@ int parse_tologin(int fd) { return 0; for(i = 0; i < fd_max && !( session[i] && - (sd = (struct char_session_data*)session[i]->session_data) && + (sd = (struct char_session_data*)session[i]->session_data) && sd->account_id == RFIFOL(fd,2)) ; i++); if (i < fd_max) { -- cgit v1.2.3-70-g09d2