Add ship shake to not log about being missing

This log was causing confusion and issues when in reality there was no problem present.
This commit is contained in:
Jett 2021-12-09 13:09:12 +00:00
parent a923a2baa7
commit bd609dfc90

View File

@ -781,6 +781,8 @@ CppScripts::Script* CppScripts::GetScript(Entity* parent, const std::string& scr
script = invalidToReturn;
else if (scriptName == "scripts\\02_server\\Enemy\\General\\L_BASE_ENEMY_SPIDERLING.lua")
script = invalidToReturn;
else if (scriptName == "scripts\\ai\\AG\\L_AG_SHIP_SHAKE.lua")
script = invalidToReturn; //Set ship shake to not log it is missing, it is implemented in AgSpaceStuff
else if (script == invalidToReturn) {
if (scriptName.length() > 0)
Game::logger->Log("CppScripts", "Attempted to load CppScript for '" + scriptName + "', but returned InvalidScript.\n");