From 08ed030ade87d5764d90bc59f4d8d91f1aaf32e7 Mon Sep 17 00:00:00 2001 From: Lemongrass3110 <lemongrass@kstp.at> Date: Tue, 13 Dec 2022 00:00:03 +0100 Subject: [PATCH] Added some checks if the variable name was already defined --- src/map/pc.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/map/pc.hpp b/src/map/pc.hpp index 4ad2c816df..9b543d67d0 100644 --- a/src/map/pc.hpp +++ b/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)