• 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!

TFS 0.X 0.4 r3884 equip item with light then de-equip and light stays on

forumek

Member
Joined
Jan 14, 2019
Messages
61
Reaction score
22
Does anyone has any clue where to look in source to fix that
Here is example with torch
Torch is off but character still emits light
1.png
every item that emits light causing this shields frozen starlight etc.
interestingly r3777 doesn't have that bug but r3884 does
 
Maybe check the differences in player.cpp between 3777/3884
C++:
Player::updateItemsLight
to see what is missing.
or post both and I can check what is missing.
 
It works lol
I replaced this:
C++:
if(maxLight.level > itemsLight.level || (maxLight.level == itemsLight.level && maxLight.color != itemsLight.color))
with this:
C++:
if(itemsLight.level != maxLight.level || itemsLight.color != maxLight.color)
Thanks!
 
Back
Top