1
0
forked from 0ad/0ad

Fix badly-named variable

This was SVN commit r9285.
This commit is contained in:
Ykkrosh 2011-04-20 00:02:59 +00:00
parent b35d3a5e3d
commit 6d946cc58d

View File

@ -111,9 +111,9 @@ public:
// Only play the sound if the entity is visible
CmpPtr<ICmpRangeManager> cmpRangeManager(GetSimContext(), SYSTEM_ENTITY);
ICmpRangeManager::ELosVisibility m_Visibility = cmpRangeManager->GetLosVisibility(source, GetSimContext().GetCurrentDisplayedPlayer());
ICmpRangeManager::ELosVisibility vis = cmpRangeManager->GetLosVisibility(source, GetSimContext().GetCurrentDisplayedPlayer());
if (m_Visibility == ICmpRangeManager::VIS_VISIBLE)
if (vis == ICmpRangeManager::VIS_VISIBLE)
{
// Find the source's position, if possible
// (TODO: we should do something more sensible if there's no position available)