mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 05:21:29 +00:00
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)
This commit is contained in:
parent
9c22de9eb2
commit
16f72be898
@ -1611,6 +1611,9 @@ void Client::OPGMTraining(const EQApplicationPacket *app)
|
|||||||
if(DistNoRoot(*pTrainer) > USE_NPC_RANGE2)
|
if(DistNoRoot(*pTrainer) > USE_NPC_RANGE2)
|
||||||
return;
|
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) {
|
for (int sk = Skill1HBlunt; sk <= HIGHEST_SKILL; ++sk) {
|
||||||
if(sk == SkillTinkering && GetRace() != GNOME) {
|
if(sk == SkillTinkering && GetRace() != GNOME) {
|
||||||
gmtrain->skills[sk] = 0; //Non gnomes can't tinker!
|
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.
|
//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
|
uchar ending[]={0x34,0x87,0x8a,0x3F,0x01
|
||||||
,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9
|
,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9,0xC9
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user