From 16f72be8982f7f4150467c613de2fc294919d23c Mon Sep 17 00:00:00 2001 From: Uleat Date: Wed, 12 Nov 2014 23:41:38 -0500 Subject: [PATCH] Added remarked #pragma comments around the OPGMTraining problem code (more for a reminder..but, can be enabled if you are having crash issues involving the for-loop) --- zone/client_process.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zone/client_process.cpp b/zone/client_process.cpp index a4c608df4..c6265accf 100644 --- a/zone/client_process.cpp +++ b/zone/client_process.cpp @@ -1611,6 +1611,9 @@ void Client::OPGMTraining(const EQApplicationPacket *app) if(DistNoRoot(*pTrainer) > USE_NPC_RANGE2) return; + // if this for-loop acts up again (crashes linux), try enabling the before and after #pragmas +//#pragma GCC push_options +//#pragma GCC optimize ("O0") for (int sk = Skill1HBlunt; sk <= HIGHEST_SKILL; ++sk) { if(sk == SkillTinkering && GetRace() != GNOME) { gmtrain->skills[sk] = 0; //Non gnomes can't tinker! @@ -1620,6 +1623,7 @@ void Client::OPGMTraining(const EQApplicationPacket *app) //Set it to 1 with CanHaveSkill or you wont be able to train past 1. } } +//#pragma GCC pop_options uchar ending[]={0x34,0x87,0x8a,0x3F,0x01 ,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9