mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Added a condition which should stop the blue asterisk from appearing on an item unless that item is of item class IC_LBEGEAR.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2619 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -441,7 +441,9 @@ bool OBJECTTYPE::IsActiveLBE(unsigned int index)
|
||||
|
||||
bool OBJECTTYPE::HasAnyActiveLBEs(SOLDIERTYPE * pSoldier, UINT8 iter)
|
||||
{
|
||||
if (exists() == true) {
|
||||
//CHRISL: Since only IC_LBEGEAR items can be classified as LBENODEs, only allow this to return true if the item we're
|
||||
// working with is actually the right class of item.
|
||||
if (exists() == true && Item[this->usItem].usItemClass == IC_LBEGEAR) {
|
||||
if(pSoldier != NULL){
|
||||
for (int x = 0; x < ubNumberOfObjects; ++x) {
|
||||
if ((*this)[x]->data.lbe.bLBE == -1) {
|
||||
|
||||
Reference in New Issue
Block a user