Make sure that a 'Version' line is written to the history

file even if VERSION and SVNVERSION are not defined (otherwise
the history.dat file can not be read in).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5122 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2010-04-07 05:30:51 +00:00
parent 164852912f
commit 79b427ed00

View File

@@ -156,6 +156,10 @@ void History::Save()
int num_karts = world->getNumKarts();
#ifdef VERSION
fprintf(fd, "Version: %s\n", VERSION);
#else ifdef SVNVERSION
fprintf(fd, "Version: %s\n", SVNVERSION);
#else
fprintf(fd, "Version: unknown\n", SVNVERSION);
#endif
fprintf(fd, "numkarts: %d\n", num_karts);
fprintf(fd, "numplayers: %d\n", race_manager->getNumPlayers());