Changeset - r18802:302fa4e2c8aa
[Not reviewed]
master
0 1 0
rubidium - 12 years ago 2011-12-22 20:05:52
rubidium@openttd.org
(svn r23660) -Feature-ish: add the game script to the crash log
1 file changed with 6 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/crashlog.cpp
Show inline comments
 
@@ -28,6 +28,8 @@
 
#include "language.h"
 

	
 
#include "ai/ai_info.hpp"
 
#include "game/game.hpp"
 
#include "game/game_info.hpp"
 
#include "company_base.h"
 
#include "company_func.h"
 

	
 
@@ -154,6 +156,10 @@ char *CrashLog::LogConfiguration(char *b
 
			buffer += seprintf(buffer, last, " %2i: %s (v%d)\n", (int)c->index, c->ai_info->GetName(), c->ai_info->GetVersion());
 
		}
 
	}
 

	
 
	if (Game::GetInfo() != NULL) {
 
		buffer += seprintf(buffer, last, " GS: %s (v%d)\n", Game::GetInfo()->GetName(), Game::GetInfo()->GetVersion());
 
	}
 
	buffer += seprintf(buffer, last, "\n");
 

	
 
	return buffer;
0 comments (0 inline, 0 general)