Fix badly-named variable
This was SVN commit r9285.
This commit is contained in:
parent
b35d3a5e3d
commit
6d946cc58d
@ -111,9 +111,9 @@ public:
|
|||||||
|
|
||||||
// Only play the sound if the entity is visible
|
// Only play the sound if the entity is visible
|
||||||
CmpPtr<ICmpRangeManager> cmpRangeManager(GetSimContext(), SYSTEM_ENTITY);
|
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
|
// Find the source's position, if possible
|
||||||
// (TODO: we should do something more sensible if there's no position available)
|
// (TODO: we should do something more sensible if there's no position available)
|
||||||
|
Loading…
Reference in New Issue
Block a user