GameTime.Night event
Posted: Wed Aug 18, 2004 6:44 pm
I found this useful to me when casting Dance of the Fireflies with a macro. The time that is coded into MQ for what EQ considers night appears to be incorrect. I changed the following lines in the source files listed and recompiled, the problem looks like it has been fixed. Let me know what you think.
FileName
MQ2Utilities.cpp
Line Number: 810
Original Line:
if (Night) *Night = ((eqHour < 7) || (eqHour > 18));//?TRUE:FALSE; // already handled by operators
Modified Line:
if (Night) *Night = ((eqHour < 5) || (eqHour > 19));//?TRUE:FALSE; // already handled by operators
File Name: MQ2DataTypes.cpp
Line Number: 3689
Original Line:
Dest.DWord=((pTime->tm_hour<7) || (pTime->tm_hour>18));
Changed Line:
Dest.DWord=((pTime->tm_hour<5) || (pTime->tm_hour>19));
*edited to correct line position*
FileName
MQ2Utilities.cpp
Line Number: 810
Original Line:
if (Night) *Night = ((eqHour < 7) || (eqHour > 18));//?TRUE:FALSE; // already handled by operators
Modified Line:
if (Night) *Night = ((eqHour < 5) || (eqHour > 19));//?TRUE:FALSE; // already handled by operators
File Name: MQ2DataTypes.cpp
Line Number: 3689
Original Line:
Dest.DWord=((pTime->tm_hour<7) || (pTime->tm_hour>18));
Changed Line:
Dest.DWord=((pTime->tm_hour<5) || (pTime->tm_hour>19));
*edited to correct line position*