mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-05-10 12:36:45 +03:00
Replace WarningsAsErrors usage with ScriptAssert usage.
For recoverable errors, add some recovery behaviour and logging so a level designer can see in the log what was done as a result of the error. Warn about default behaviour if no callbacks are added.
This commit is contained in:
parent
052b03ec96
commit
ead31e63f2
9 changed files with 36 additions and 61 deletions
|
@ -650,7 +650,7 @@ unsigned CALLBACK GameMain(void *)
|
|||
// Initialise legacy memory buffer and game timer
|
||||
init_game_malloc();
|
||||
TIME_Init();
|
||||
if (g_GameFlow->IntroImagePath.empty() && WarningsAsErrors)
|
||||
if (g_GameFlow->IntroImagePath.empty())
|
||||
{
|
||||
throw TENScriptException("Intro image path is not set.");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue