summaryrefslogtreecommitdiff
path: root/src/map/pc.h
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-08 19:16:56 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-08 19:16:56 +0000
commit1531c96f8140ffa5c86add64482f3060a650853b (patch)
tree956c9c7a97da7e876464ff9bfe14bfe56dccf95e /src/map/pc.h
parent3be4acc3f4d83cfb8558fbe129edee90668db443 (diff)
downloadhercules-1531c96f8140ffa5c86add64482f3060a650853b.tar.gz
hercules-1531c96f8140ffa5c86add64482f3060a650853b.tar.bz2
hercules-1531c96f8140ffa5c86add64482f3060a650853b.tar.xz
hercules-1531c96f8140ffa5c86add64482f3060a650853b.zip
-pc_jobid2mapid and pc_mapid2jobid now return int, and will return -1 when the class couldn't be deciphered.
- pc_authok will change you to notice if your current class is invalid. - rewrote pc_jobchange to be much more simple and less of a hassle by using pc_jobid2mapid and pc_mapid2jobid as necessary. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5520 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/pc.h')
-rw-r--r--src/map/pc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.h b/src/map/pc.h
index 78830b6d9..a1b82dd15 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -198,8 +198,8 @@ struct pc_base_job{
struct pc_base_job pc_calc_base_job(int b_class);//転生や養子職の元の職業を返す
int pc_calc_base_job2(int b_class); // Celest
-unsigned short pc_jobid2mapid(unsigned short b_class); // Skotlex
-unsigned short pc_mapid2jobid(unsigned short class_, int sex); // Skotlex
+int pc_jobid2mapid(unsigned short b_class); // Skotlex
+int pc_mapid2jobid(unsigned short class_, int sex); // Skotlex
char * job_name(int class_);