mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-23 15:26:16 +00:00
Fixed: some gcc warning
This commit is contained in:
parent
dace16f902
commit
93f4016d1a
5 changed files with 9 additions and 9 deletions
|
@ -1274,10 +1274,10 @@ void getDamageText(CDBCtrlSheet *item, const CItemSheet*pIS, ucstring &itemText,
|
|||
|
||||
string strMod;
|
||||
if(displayAsMod)
|
||||
strMod= itemInfo.CurrentDamage>=0?"+":"";
|
||||
strMod= "+";
|
||||
strFindReplace(itemText, "%dmg", strMod + toString(itemInfo.CurrentDamage));
|
||||
if(displayAsMod)
|
||||
strMod= itemInfo.MaxDamage>=0?"+":"";
|
||||
strMod= "+";
|
||||
strFindReplace(itemText, "%max_dmg", strMod + toString(itemInfo.MaxDamage));
|
||||
|
||||
if(pIS->Family!=ITEMFAMILY::AMMO)
|
||||
|
|
|
@ -2473,7 +2473,7 @@ void CGroupHTML::setTitle (const ucstring &title)
|
|||
CInterfaceElement *parent = getParent();
|
||||
if (parent)
|
||||
{
|
||||
if (parent = parent->getParent())
|
||||
if ((parent = parent->getParent()))
|
||||
{
|
||||
CGroupContainer *container = dynamic_cast<CGroupContainer*>(parent);
|
||||
if (container)
|
||||
|
|
|
@ -3391,7 +3391,7 @@ bool CInterfaceParser::parseActionCategory(xmlNodePtr cur)
|
|||
nlwarning("<CInterfaceParser::parseActionCategory> cannot create instance from template");
|
||||
}
|
||||
}
|
||||
while(instanceNode = CIXml::getNextChildNode(instanceNode, "instance"));
|
||||
while((instanceNode = CIXml::getNextChildNode(instanceNode, "instance")));
|
||||
}
|
||||
|
||||
parameter.Values.resize (CIXml::countChildren(paramNode, "value"));
|
||||
|
@ -3422,18 +3422,18 @@ bool CInterfaceParser::parseActionCategory(xmlNodePtr cur)
|
|||
|
||||
valueIndex++;
|
||||
}
|
||||
while(valueNode = CIXml::getNextChildNode(valueNode, "value"));
|
||||
while((valueNode = CIXml::getNextChildNode(valueNode, "value")));
|
||||
}
|
||||
|
||||
parameterIndex++;
|
||||
}
|
||||
while(paramNode = CIXml::getNextChildNode(paramNode, "parameter"));
|
||||
while((paramNode = CIXml::getNextChildNode(paramNode, "parameter")));
|
||||
}
|
||||
|
||||
// Next action
|
||||
actionIndex++;
|
||||
}
|
||||
while(actionNode = CIXml::getNextChildNode(actionNode, "action"));
|
||||
while((actionNode = CIXml::getNextChildNode(actionNode, "action")));
|
||||
}
|
||||
|
||||
// Add this category to the action manager
|
||||
|
|
|
@ -617,7 +617,7 @@ int CLuaIHM::luaMethodCall(lua_State *ls)
|
|||
//
|
||||
state->remove(1); // remove 'self' reference from parameters stack
|
||||
//
|
||||
int numResults;
|
||||
int numResults = 0;
|
||||
int initialStackSize = state->getTop();
|
||||
try
|
||||
{
|
||||
|
|
|
@ -456,7 +456,7 @@ void CUserEntity::updateVisualPropertyBehaviour(const NLMISC::TGameCycle &/* gam
|
|||
bc.BehavTime = TimeInSec;
|
||||
if(VerboseAnimUser)
|
||||
{
|
||||
nlinfo("UE::updateVPBeha: '%d(%s)'.", bc.Behav.Behaviour, MBEHAV::behaviourToString(bc.Behav.Behaviour).c_str());
|
||||
nlinfo("UE::updateVPBeha: '%d(%s)'.", (int)bc.Behav.Behaviour, MBEHAV::behaviourToString(bc.Behav.Behaviour).c_str());
|
||||
}
|
||||
CCDBNodeLeaf *targetList0 = dynamic_cast<CCDBNodeLeaf *>(_DBEntry->getNode(CLFECOMMON::PROPERTY_TARGET_LIST_0));
|
||||
CCDBNodeLeaf *targetList1 = dynamic_cast<CCDBNodeLeaf *>(_DBEntry->getNode(CLFECOMMON::PROPERTY_TARGET_LIST_1));
|
||||
|
|
Loading…
Reference in a new issue