summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorAmir El Sayed <aes@basecom.de>2013-09-12 20:31:35 +0200
committerAmir El Sayed <aes@basecom.de>2013-09-18 21:16:25 +0200
commit6cf032de5d12a33f04e6b3eb5dc4d71c17554ce3 (patch)
tree74b33003f7fcd35c27248c1c8d668c1295f0de91 /src/map/pc.c
parenteb10f355f7e228b59011326a7f84da2e593affea (diff)
downloadhercules-6cf032de5d12a33f04e6b3eb5dc4d71c17554ce3.tar.gz
hercules-6cf032de5d12a33f04e6b3eb5dc4d71c17554ce3.tar.bz2
hercules-6cf032de5d12a33f04e6b3eb5dc4d71c17554ce3.tar.xz
hercules-6cf032de5d12a33f04e6b3eb5dc4d71c17554ce3.zip
Fixed Ranking Lists for 2013 clients
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 421099ce1..d2740c76a 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -400,21 +400,17 @@ int pc_banding(struct map_session_data *sd, uint16 skill_lv) {
// Increases a player's fame points and displays a notice to him
void pc_addfame(struct map_session_data *sd,int count)
{
+ int ranktype = -1;
nullpo_retv(sd);
sd->status.fame += count;
if(sd->status.fame > MAX_FAME)
sd->status.fame = MAX_FAME;
switch(sd->class_&MAPID_UPPERMASK){
- case MAPID_BLACKSMITH: // Blacksmith
- clif->fame_blacksmith(sd,count);
- break;
- case MAPID_ALCHEMIST: // Alchemist
- clif->fame_alchemist(sd,count);
- break;
- case MAPID_TAEKWON: // Taekwon
- clif->fame_taekwon(sd,count);
- break;
+ case MAPID_BLACKSMITH: ranktype = RANKTYPE_BLACKSMITH; break;
+ case MAPID_ALCHEMIST: ranktype = RANKTYPE_ALCHEMIST; break;
+ case MAPID_TAEKWON: ranktype = RANKTYPE_TAEKWON; break;
}
+ clif->update_rankingpoint(sd, ranktype, count);
chrif->updatefamelist(sd);
}