File diff r26193:4bc7915a2156 → r26194:f7347205838e
src/gamelog.cpp
Show inline comments
 
@@ -48,14 +48,14 @@ static const char * GetGamelogRevisionSt
 
	static_assert(lengthof(gamelog_revision) > GAMELOG_REVISION_LENGTH);
 

	
 
	if (IsReleasedVersion()) {
 
		return _openttd_revision;
 
	} else if (gamelog_revision[0] == 0) {
 
		/* Prefix character indication revision status */
 
		assert(_openttd_revision_modified < 3);
 
		gamelog_revision[0] = "gum"[_openttd_revision_modified]; // g = "git", u = "unknown", m = "modified"
 
		assert(_openttd_revision_modified < 5);
 
		gamelog_revision[0] = "gumhh"[_openttd_revision_modified]; // g = "git", u = "unknown", m = "modified", "h" = "hg"
 
		/* Append the revision hash */
 
		strecat(gamelog_revision, _openttd_revision_hash, lastof(gamelog_revision));
 
		/* Truncate string to GAMELOG_REVISION_LENGTH bytes */
 
		gamelog_revision[GAMELOG_REVISION_LENGTH - 1] = '\0';
 
	}
 
	return gamelog_revision;