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:
BeniS
2012-12-03 13:17:41 +13:00
parent b806b57628
commit 617e6b302b
6 changed files with 18 additions and 8 deletions

View File

@@ -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;