[IFxEffectDef] Parse version

This commit is contained in:
momo5502 2016-12-09 18:59:18 +01:00
parent 13f4af34b2
commit 5cd08907a8

View File

@ -21,6 +21,13 @@ namespace Assets
Components::Logger::Error("Effect needs to be updated from the legacy format.\n");
}
int version = atoi(Game::Com_Parse(&session));
if (version > 2)
{
Game::Com_EndParseSession();
Components::Logger::Error("Version %i is too high. I can only handle up to %i.\n", version, 2);
}
Game::FxEditorEffectDef efx;
ZeroMemory(&efx, sizeof(efx));