From 22909543ad01f9714edd105e93351ec14dc53f94 Mon Sep 17 00:00:00 2001 From: Lucas GAUTHERON Date: Mon, 13 Jun 2011 12:22:38 +0000 Subject: [PATCH] min maxfps = 25 git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6533 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- config/docs.cfg | 2 +- docs/reference.xml | 2 +- source/src/main.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/docs.cfg b/config/docs.cfg index 5f092eb9..fcb64644 100644 --- a/config/docs.cfg +++ b/config/docs.cfg @@ -336,7 +336,7 @@ docremark [You should never have to use this command manually, use "bind" instea docident [left] [Moves the player left.]; docremark [default keys: A and Left Arrow]; docident [maxfps] [Limits the FPS (frames per second) of the game.]; -docargument [V] [maximum FPS] [min 0/max 200/default 200]; +docargument [V] [maximum FPS] [min 25/max 200/default 200]; docident [maxroll] [Sets the maximum value the display will roll on strafing.]; docargument [N] [the roll value] [min 0/max 20/default 0]; docident [maxtmus] [Gets the maximum number of supported textures when performing multitexturing.]; diff --git a/docs/reference.xml b/docs/reference.xml index 51c38e21..4c5954b5 100644 --- a/docs/reference.xml +++ b/docs/reference.xml @@ -1663,7 +1663,7 @@ echo foo Limits the FPS (frames per second) of the game. - + diff --git a/source/src/main.cpp b/source/src/main.cpp index 1e6a4d3d..24519f2f 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -677,7 +677,7 @@ void resetgl() COMMAND(resetgl, ARG_NONE); -VARP(maxfps, 0, 200, 1000); +VARFP(maxfps, 0, 200, 1000, if(maxfps && maxfps < 25) maxfps = 25); void limitfps(int &millis, int curmillis) {