• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling C++ removing daytime

Sun

Knowledge is power - France is bacon
Joined
Jan 26, 2015
Messages
333
Solutions
22
Reaction score
244
Honestly, 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
 
so.... I just need to remove

Code:
} else if (newLightLevel >= LIGHT_LEVEL_DAY) {
        lightLevel = LIGHT_LEVEL_DAY;
        lightState = LIGHT_STATE_DAY;
or what? xd
 
Idk about 0.4 but for 1.2 you can simply do this.

Change this
Code:
    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;
    }
To this
Code:
    lightLevel = LIGHT_LEVEL_NIGHT;
    lightState = LIGHT_STATE_NIGHT;

In your 0.4 source, look for similar code.
 
Back
Top