Changeset - r17385:d913e96c05b0
[Not reviewed]
master
0 1 0
frosch - 14 years ago 2011-02-24 22:14:41
frosch@openttd.org
(svn r22141) -Fix (r22135): AI breakpoints were broken at this point. (thanks Zuu)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/ai/api/ai_log.cpp
Show inline comments
 
@@ -66,25 +66,25 @@
 

	
 
	switch (level) {
 
		case LOG_SQ_ERROR: logc = 'S'; break;
 
		case LOG_ERROR:    logc = 'E'; break;
 
		case LOG_SQ_INFO:  logc = 'P'; break;
 
		case LOG_WARNING:  logc = 'W'; break;
 
		case LOG_INFO:     logc = 'I'; break;
 
		default:           logc = '?'; break;
 
	}
 

	
 
	/* Also still print to debug window */
 
	DEBUG(ai, level, "[%d] [%c] %s", (uint)_current_company, logc, log->lines[log->pos]);
 
	InvalidateWindowData(WC_AI_DEBUG, 0, _current_company);
 
	InvalidateWindowData(WC_AI_DEBUG, 0, _current_company, true); // breakpoint handling needs calling Invalidate immediately.
 
}
 

	
 
/* static */ void AILog::FreeLogPointer()
 
{
 
	LogData *log = (LogData *)AIObject::GetLogPointer();
 

	
 
	for (int i = 0; i < log->count; i++) {
 
		free(log->lines[i]);
 
	}
 

	
 
	free(log->lines);
 
	free(log->type);
0 comments (0 inline, 0 general)