Linux build fix and correct spacing syntax in for loop.

master
Andrew Copland 2016-05-11 20:06:45 +01:00
parent 5545717251
commit ebfb64213c
2 changed files with 2 additions and 2 deletions

View File

@ -211,7 +211,7 @@ void SfxManager::Cleanup()
if(!numInstances)
continue;
for (Sint64 i = Sint64(numInstances-1); i >= 0 ; i--)
for (Sint64 i = Sint64(numInstances-1); i>=0; i--)
{
Sfx &inst(GetInstanceByIndex(SFX_TYPE(t), i));
if (inst.m_type == TYPE_NONE)

View File

@ -14,7 +14,7 @@ namespace Graphics {
class Renderer;
}
const enum SFX_TYPE { TYPE_EXPLOSION=1, TYPE_DAMAGE, TYPE_SMOKE, TYPE_NONE };
enum SFX_TYPE { TYPE_EXPLOSION=1, TYPE_DAMAGE, TYPE_SMOKE, TYPE_NONE };
class Sfx {
public: