mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[7620] Make GCC happy. Restore build at Unix/Linux.
This commit is contained in:
parent
0f23722eb8
commit
2c06d207a7
3 changed files with 26 additions and 17 deletions
|
|
@ -97,7 +97,11 @@ void HostilReference::addThreat(float pMod)
|
|||
if(!isOnline())
|
||||
updateOnlineStatus();
|
||||
if(pMod != 0.0f)
|
||||
fireStatusChanged(ThreatRefStatusChangeEvent(UEV_THREAT_REF_THREAT_CHANGE, this, pMod));
|
||||
{
|
||||
ThreatRefStatusChangeEvent event(UEV_THREAT_REF_THREAT_CHANGE, this, pMod);
|
||||
fireStatusChanged(event);
|
||||
}
|
||||
|
||||
if(isValid() && pMod >= 0)
|
||||
{
|
||||
Unit* victim_owner = getTarget()->GetOwner();
|
||||
|
|
@ -153,7 +157,9 @@ void HostilReference::setOnlineOfflineState(bool pIsOnline)
|
|||
iOnline = pIsOnline;
|
||||
if(!iOnline)
|
||||
setAccessibleState(false); // if not online that not accessable as well
|
||||
fireStatusChanged(ThreatRefStatusChangeEvent(UEV_THREAT_REF_ONLINE_STATUS, this));
|
||||
|
||||
ThreatRefStatusChangeEvent event(UEV_THREAT_REF_ONLINE_STATUS, this);
|
||||
fireStatusChanged(event);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -164,7 +170,9 @@ void HostilReference::setAccessibleState(bool pIsAccessible)
|
|||
if(iAccessible != pIsAccessible)
|
||||
{
|
||||
iAccessible = pIsAccessible;
|
||||
fireStatusChanged(ThreatRefStatusChangeEvent(UEV_THREAT_REF_ASSECCIBLE_STATUS, this));
|
||||
|
||||
ThreatRefStatusChangeEvent event(UEV_THREAT_REF_ASSECCIBLE_STATUS, this);
|
||||
fireStatusChanged(event);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -175,7 +183,9 @@ void HostilReference::setAccessibleState(bool pIsAccessible)
|
|||
void HostilReference::removeReference()
|
||||
{
|
||||
invalidate();
|
||||
fireStatusChanged(ThreatRefStatusChangeEvent(UEV_THREAT_REF_REMOVE_FROM_LIST, this));
|
||||
|
||||
ThreatRefStatusChangeEvent event(UEV_THREAT_REF_REMOVE_FROM_LIST, this);
|
||||
fireStatusChanged(event);
|
||||
}
|
||||
|
||||
//============================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue