code cleanup

This commit is contained in:
Mark Vejvoda
2013-06-04 04:36:00 +00:00
parent aab72b863c
commit b6780d2af7
3 changed files with 3 additions and 4 deletions

View File

@@ -1933,7 +1933,7 @@ void ScriptManager::unregisterDayNightEvent() {
void ScriptManager::onDayNightTriggerEvent() {
if(registeredDayNightEvent == true) {
bool isDay = this->getIsDayTime();
bool isDay = (this->getIsDayTime() == 1);
if((lastDayNightTriggerStatus != 1 && isDay == true) ||
(lastDayNightTriggerStatus != 2 && isDay == false)) {
if(isDay == true) {