diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-11-19 18:19:09 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2009-11-19 18:19:09 +0000 |
commit | 30c8d7704026aa450b64997c2996ee8d9d4f2cec (patch) | |
tree | dae267b2e016111da192de4dbf67679878e73409 /src/char/int_status.c | |
parent | 620ea0643c3bcbfed5dd7c84e8d65fc8941997a7 (diff) | |
download | hercules-30c8d7704026aa450b64997c2996ee8d9d4f2cec.tar.gz hercules-30c8d7704026aa450b64997c2996ee8d9d4f2cec.tar.bz2 hercules-30c8d7704026aa450b64997c2996ee8d9d4f2cec.tar.xz hercules-30c8d7704026aa450b64997c2996ee8d9d4f2cec.zip |
- Applied the renewal client support patch from Diablo (eA forum topic 222623)
- Added support for strcharinfo(3) to retrieve the player's map
- Added script command "searchitem" for name item searches.
- Moved PACKETVER to src/common/mmo.h as it's needed by the char-server now
- Changed the status valX from int to long so that it won't break for pointer-storage in other architectures.
- Moved the change party leader code to party.c
- A few bugfixes or packet field completions based on my past experience messing around with my server.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14155 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char/int_status.c')
-rw-r--r-- | src/char/int_status.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char/int_status.c b/src/char/int_status.c index bf5d94155..52b14ebbe 100644 --- a/src/char/int_status.c +++ b/src/char/int_status.c @@ -54,7 +54,7 @@ static void inter_status_tostr(char* line, struct scdata *sc_data) len = sprintf(line, "%d,%d,%d\t", sc_data->account_id, sc_data->char_id, sc_data->count); for(i = 0; i < sc_data->count; i++) { - len += sprintf(line + len, "%d,%d,%d,%d,%d,%d\t", sc_data->data[i].type, sc_data->data[i].tick, + len += sprintf(line + len, "%d,%ld,%ld,%ld,%ld,%ld\t", sc_data->data[i].type, sc_data->data[i].tick, sc_data->data[i].val1, sc_data->data[i].val2, sc_data->data[i].val3, sc_data->data[i].val4); } return; @@ -74,7 +74,7 @@ static int inter_scdata_fromstr(char *line, struct scdata *sc_data) for (i = 0; i < sc_data->count; i++) { - if (sscanf(line + next, "%hu,%d,%d,%d,%d,%d\t%n", &sc_data->data[i].type, &sc_data->data[i].tick, + if (sscanf(line + next, "%hu,%ld,%ld,%ld,%ld,%ld\t%n", &sc_data->data[i].type, &sc_data->data[i].tick, &sc_data->data[i].val1, &sc_data->data[i].val2, &sc_data->data[i].val3, &sc_data->data[i].val4, &len) < 6) { aFree(sc_data->data); |