mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 20:14:54 +02:00
Fix for creature lights.
* Will now load the dat values for creature lights (ed if you know a more conventional way for this please let me know). * No need to draw light for the outfit the creature draw will handle it. Note: not sure if the from8bit method should limit at 256 or not, but tibia dat contains colors 216+.
This commit is contained in:
@@ -71,7 +71,7 @@ public:
|
||||
bool operator!=(const Color& other) const { return other.rgba() != rgba(); }
|
||||
|
||||
static Color from8bit(int color) {
|
||||
if(color >= 216 || color <= 0)
|
||||
if(color >= 256 || color <= 0)
|
||||
return Color(0, 0, 0);
|
||||
|
||||
int r = int(color / 36) % 6 * 51;
|
||||
|
Reference in New Issue
Block a user