diff --git a/commandline.cpp b/commandline.cpp index ba7577e7..925fd57e 100644 --- a/commandline.cpp +++ b/commandline.cpp @@ -98,6 +98,9 @@ int arg::readCommon() { else if(argis("-nogui")) { noGUI = true; } + else if(argis("-nofps")) { + nofps = true; + } else if(argis("-back")) { shift(); backcolor = strtol(args(), NULL, 16); } diff --git a/hud.cpp b/hud.cpp index 9fd2e53c..383aaa05 100644 --- a/hud.cpp +++ b/hud.cpp @@ -327,6 +327,8 @@ void drawMobileArrow(cell *c, transmatrix V) { queuepolyat(atscreenpos(dx, dy, scale) * spin(-alpha), shArrow, col, PPR_MOBILE_ARROW); } +bool nofps = false; + void drawStats() { callhandlers(false, hooks_prestats); #if CAP_ROGUEVIZ @@ -524,7 +526,9 @@ void drawStats() { "but are not counted in the total kill count."); } } - if(displayButtonS(4, vid.yres - 4 - vid.fsize/2, s0+VER+ XLAT(" fps: ") + its(calcfps()), 0x202020, 0, vid.fsize/2)) { + string vers = VER; + if(!nofps) vers += XLAT(" fps: ") + its(calcfps()); + if(displayButtonS(4, vid.yres - 4 - vid.fsize/2, vers, 0x202020, 0, vid.fsize/2)) { mouseovers = XLAT("frames per second"), getcstat = SDLK_F1, instat = true,