diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-10 13:59:23 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-11-10 13:59:23 +0000 |
commit | e691cff48424675b5d6f3ca0e5ded1b2aebbecd1 (patch) | |
tree | c74873c5e9d29f636c35704397cb259e8136e020 /src/char/char.c | |
parent | d8872dabd55e5db6962e5bcddd5d0ac469ef9312 (diff) | |
download | hercules-e691cff48424675b5d6f3ca0e5ded1b2aebbecd1.tar.gz hercules-e691cff48424675b5d6f3ca0e5ded1b2aebbecd1.tar.bz2 hercules-e691cff48424675b5d6f3ca0e5ded1b2aebbecd1.tar.xz hercules-e691cff48424675b5d6f3ca0e5ded1b2aebbecd1.zip |
Fixed some more gcc incompatibilities...
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11706 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char/char.c')
-rw-r--r-- | src/char/char.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/char/char.c b/src/char/char.c index f7881a33b..b1e49442b 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -1188,8 +1188,8 @@ int make_new_char(struct char_session_data* sd, char* name_, int str, int agi, i // check name (already in use?) ARR_FIND( 0, char_num, i, - name_ignoring_case && strncmp(char_dat[i].status.name, name, NAME_LENGTH) == 0 || - !name_ignoring_case && strncmpi(char_dat[i].status.name, name, NAME_LENGTH) == 0 ); + (name_ignoring_case && strncmp(char_dat[i].status.name, name, NAME_LENGTH) == 0) || + (!name_ignoring_case && strncmpi(char_dat[i].status.name, name, NAME_LENGTH) == 0) ); if( i < char_num ) return -1; // name already exists @@ -3789,7 +3789,7 @@ int broadcast_user_count(int tid, unsigned int tick, int id, int data) int users = count_users(); // only send an update when needed - static prev_users = 0; + static int prev_users = 0; if( prev_users == users ) return 0; prev_users = users; |