Procházet zdrojové kódy

Added some checks if the variable name was already defined

Lemongrass3110 před 2 roky
rodič
revize
08ed030ade
1 změnil soubory, kde provedl 6 přidání a 2 odebrání
  1. 6 2
      src/map/pc.hpp

+ 6 - 2
src/map/pc.hpp

@@ -63,8 +63,12 @@ enum sc_type : int16;
 #define ATTENDANCE_DATE_VAR "#AttendanceDate"
 #define ATTENDANCE_COUNT_VAR "#AttendanceCounter"
 #define ACHIEVEMENTLEVEL "AchievementLevel"
-#define GOLDPC_POINT_VAR "Goldpc_Points"
-#define GOLDPC_SECONDS_VAR "Goldpc_Seconds"
+#ifndef GOLDPC_POINT_VAR
+	#define GOLDPC_POINT_VAR "Goldpc_Points"
+#endif
+#ifndef GOLDPC_SECONDS_VAR
+	#define GOLDPC_SECONDS_VAR "Goldpc_Seconds"
+#endif
 
 //Total number of classes (for data storage)
 #define CLASS_COUNT (JOB_MAX - JOB_NOVICE_HIGH + JOB_MAX_BASIC)