diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-31 15:07:37 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-05-31 15:07:37 +0000 |
commit | 47981612dad9c7d94466e357de003f0ba597efcb (patch) | |
tree | 149cca1ddc2fe13a15999585cab3631588b93880 /src/map | |
parent | 8f6123730efe4fb57d9895e032967fefb0a00d40 (diff) | |
download | hercules-47981612dad9c7d94466e357de003f0ba597efcb.tar.gz hercules-47981612dad9c7d94466e357de003f0ba597efcb.tar.bz2 hercules-47981612dad9c7d94466e357de003f0ba597efcb.tar.xz hercules-47981612dad9c7d94466e357de003f0ba597efcb.zip |
- Some cleaning of the fame-update code, fixing a logic bug which made the ranking list fail to display the correct ranker names.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6891 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/chrif.c | 2 | ||||
-rw-r--r-- | src/map/pc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c index a5f48dbb8..d3e04a7a1 100644 --- a/src/map/chrif.c +++ b/src/map/chrif.c @@ -1127,7 +1127,7 @@ int chrif_updatefamelist(struct map_session_data *sd) return 0;
}
- WFIFOHEAD(char_fd, 12);
+ WFIFOHEAD(char_fd, 12);
WFIFOW(char_fd, 0) = 0x2b10;
WFIFOL(char_fd, 2) = sd->char_id;
WFIFOL(char_fd, 6) = sd->status.fame;
diff --git a/src/map/pc.c b/src/map/pc.c index 9049bc52b..fa11d56bd 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -226,7 +226,7 @@ int pc_delspiritball(struct map_session_data *sd,int count,int type) { // Increases a player's fame points and displays a notice to him
void pc_addfame(struct map_session_data *sd,int count) {
- nullpo_retv(sd);
+ nullpo_retv(sd);
sd->status.fame += count;
if(sd->status.fame > MAX_FAME)
sd->status.fame = MAX_FAME;
|