From facd7d357db905392010353b553ae82e5640d8eb Mon Sep 17 00:00:00 2001 From: Uleat Date: Tue, 3 Feb 2015 22:43:03 -0500 Subject: [PATCH] Light source exclusion tweak (helps with strobing effects) --- changelog.txt | 1 + common/item.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index 7ed3f35a7..9494adfce 100644 --- a/changelog.txt +++ b/changelog.txt @@ -2,6 +2,7 @@ EQEMu Changelog (Started on Sept 24, 2003 15:50) ------------------------------------------------------- == 02/03/2015 == Trevius: Crashfix for TempName() when numbers are passed at the end of the name. +Uleat: Tweaking of item type exclusions to alleviate strobing conditions with light sources == 02/02/2015 == Akkadius: Implement Packet logs with dumps diff --git a/common/item.cpp b/common/item.cpp index a43b5d12b..82da305f1 100644 --- a/common/item.cpp +++ b/common/item.cpp @@ -1011,7 +1011,8 @@ uint8 Inventory::FindHighestLightValue() if (inst == nullptr) { continue; } auto item = inst->GetItem(); if (item == nullptr) { continue; } - if (item->ItemType != ItemTypeMisc && item->ItemType != ItemTypeLight) { continue; } + // 'Gloomingdeep lantern' is ItemTypeArmor in the database..there may be others instances and/or types that need to be handled + if (item->ItemType != ItemTypeMisc && item->ItemType != ItemTypeLight && item->ItemType != ItemTypeArmor) { continue; } if (item->Light & 0xF0) { continue; } if (item->Light > light_value) { light_value = item->Light; } }