Sun
Knowledge is power - France is bacon
- Joined
- Jan 26, 2015
- Messages
- 334
- Solutions
- 22
- Reaction score
- 248
https://github.com/otland/forgotten...6c99d9d6a138c1f14b5b00a46a/src/game.cpp#L4336Honestly, I dislike daylight in tibia, everything becomes much uglier.
What needs to be changed in game.cpp to get rid of "full" daylight?.
Would be awesome if it could transition like this: Night -> sunrise -> sundown -> repeat
game.cpp
if (newLightLevel <= LIGHT_LEVEL_NIGHT) {
lightLevel = LIGHT_LEVEL_NIGHT;
lightState = LIGHT_STATE_NIGHT;
} else if (newLightLevel >= LIGHT_LEVEL_DAY) {
lightLevel = LIGHT_LEVEL_DAY;
lightState = LIGHT_STATE_DAY;
} else {
lightLevel = newLightLevel;
}
lightLevel = LIGHT_LEVEL_NIGHT;
lightState = LIGHT_STATE_NIGHT;