summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorHaruna <haru@dotalux.com>2013-09-18 12:22:58 -0700
committerHaruna <haru@dotalux.com>2013-09-18 12:22:58 -0700
commit3738fc7a61b5379633daa050444a949cf5251c49 (patch)
treeded408a136db46ad4e6fc8faf5b59cb5d5c86eb0 /src/map/pc.c
parenta2722019a379f83ee5a1b35a1a100400e3e7170e (diff)
parent6cf032de5d12a33f04e6b3eb5dc4d71c17554ce3 (diff)
downloadhercules-3738fc7a61b5379633daa050444a949cf5251c49.tar.gz
hercules-3738fc7a61b5379633daa050444a949cf5251c49.tar.bz2
hercules-3738fc7a61b5379633daa050444a949cf5251c49.tar.xz
hercules-3738fc7a61b5379633daa050444a949cf5251c49.zip
Merge pull request #137 from Schwierig/RankingListFix
Ranking list fix
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 b8380a840..995687170 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);
}