From: Holger Schemel Date: Tue, 19 May 2015 07:25:29 +0000 (+0200) Subject: removed unused code for FPS slowdown X-Git-Tag: 4.0.0.0-rc1~192 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=d2457f732e2efb77ba786691efbd3cee6a9a69b9;p=rocksndiamonds.git removed unused code for FPS slowdown --- diff --git a/src/events.c b/src/events.c index c748bbcb..041c49b4 100644 --- a/src/events.c +++ b/src/events.c @@ -1551,28 +1551,6 @@ void HandleKey(Key key, int key_status) } break; -#if 0 - case KSYM_s: - if (!global.fps_slowdown) - { - global.fps_slowdown = TRUE; - global.fps_slowdown_factor = 2; - printf("fps slowdown enabled -- display only every 2nd frame\n"); - } - else if (global.fps_slowdown_factor == 2) - { - global.fps_slowdown_factor = 4; - printf("fps slowdown enabled -- display only every 4th frame\n"); - } - else - { - global.fps_slowdown = FALSE; - global.fps_slowdown_factor = 1; - printf("fps slowdown disabled\n"); - } - break; -#endif - case KSYM_v: printf("::: currently using game engine version %d\n", game.engine_version); diff --git a/src/init.c b/src/init.c index c8b468c0..ad0af02d 100644 --- a/src/init.c +++ b/src/init.c @@ -4549,8 +4549,6 @@ static void InitGlobal() global.create_images_dir = NULL; global.frames_per_second = 0; - global.fps_slowdown = FALSE; - global.fps_slowdown_factor = 1; global.border_status = GAME_MODE_MAIN; diff --git a/src/main.h b/src/main.h index 60d53c38..f9c2de03 100644 --- a/src/main.h +++ b/src/main.h @@ -2522,8 +2522,6 @@ struct GlobalInfo int num_toons; float frames_per_second; - boolean fps_slowdown; - int fps_slowdown_factor; /* global values for fading screens and masking borders */ int border_status;