I'm wondering what the "straight" C version of this would be:
bool Time::IsDay()
{
SINT32 timeOfDay;
execute_calculator_code("(E:TIME OF DAY,Enum)", NULL, &timeOfDay, NULL);
if (timeOfDay == 1)
{
return true;
}
else
{
return false;
}
}
In other words not using the XML stuff, but just a gauge var. I'm thinking there has to be a faster more efficient way to determine it is day or not day. =)
Patrick
bool Time::IsDay()
{
SINT32 timeOfDay;
execute_calculator_code("(E:TIME OF DAY,Enum)", NULL, &timeOfDay, NULL);
if (timeOfDay == 1)
{
return true;
}
else
{
return false;
}
}
In other words not using the XML stuff, but just a gauge var. I'm thinking there has to be a faster more efficient way to determine it is day or not day. =)
Patrick


