From 1531c96f8140ffa5c86add64482f3060a650853b Mon Sep 17 00:00:00 2001 From: skotlex Date: Wed, 8 Mar 2006 19:16:56 +0000 Subject: -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 --- src/map/pc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/map/pc.h') 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_); -- cgit v1.2.3-60-g2f50