Changeset - r11412:43e7a9e45599
[Not reviewed]
master
0 1 0
yexo - 15 years ago 2009-03-19 23:38:51
yexo@openttd.org
(svn r15774) -Fix (r15708): Don't show the message about reporting an AI crash for the dummy AI.
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/ai/ai_instance.cpp
Show inline comments
 
@@ -255,7 +255,9 @@ void AIInstance::Died()
 
	this->engine = NULL;
 

	
 
	ShowAIDebugWindow(_current_company);
 
	ShowErrorMessage(INVALID_STRING_ID, STR_AI_PLEASE_REPORT_CRASH, 0, 0);
 
	if (strcmp(GetCompany(_current_company)->ai_info->GetMainScript(), "%_dummy") != 0) {
 
		ShowErrorMessage(INVALID_STRING_ID, STR_AI_PLEASE_REPORT_CRASH, 0, 0);
 
	}
 
}
 

	
 
void AIInstance::GameLoop()
0 comments (0 inline, 0 general)