mirror of
https://github.com/glest/glest-source.git
synced 2025-10-04 03:11:53 +02:00
code cleanup
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user