title-version: Hide when loading a game (e.g. arena)

develop
lethosor 2017-01-04 12:29:21 -05:00
parent 92f890d3c6
commit affcd658dc
1 changed files with 3 additions and 0 deletions

@ -31,6 +31,9 @@ struct title_version_hook : df::viewscreen_titlest {
DEFINE_VMETHOD_INTERPOSE(void, render, ()) DEFINE_VMETHOD_INTERPOSE(void, render, ())
{ {
INTERPOSE_NEXT(render)(); INTERPOSE_NEXT(render)();
if (loading)
return;
int x = 0, y = 0; int x = 0, y = 0;
OutputString(COLOR_WHITE, x, y, string("DFHack ") + DFHACK_VERSION); OutputString(COLOR_WHITE, x, y, string("DFHack ") + DFHACK_VERSION);
if (!DFHACK_IS_RELEASE) if (!DFHACK_IS_RELEASE)