From a1ba33e6d9b7b3daf57774f22b48c33708b18cb4 Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Sun, 4 Feb 2018 16:48:40 +0100 Subject: [PATCH] Declare is_portable only once in frame.c and not in each backend. --- src/backends/unix/main.c | 2 -- src/backends/windows/main.c | 2 -- src/backends/windows/system.c | 3 --- src/common/frame.c | 3 +++ 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/backends/unix/main.c b/src/backends/unix/main.c index 9a294bdd..795f0ee5 100644 --- a/src/backends/unix/main.c +++ b/src/backends/unix/main.c @@ -32,8 +32,6 @@ void registerHandler(void); -qboolean is_portable; - int main(int argc, char **argv) { diff --git a/src/backends/windows/main.c b/src/backends/windows/main.c index 99588e77..2f0b5672 100644 --- a/src/backends/windows/main.c +++ b/src/backends/windows/main.c @@ -31,8 +31,6 @@ #include "../../common/header/common.h" -qboolean is_portable; - /* * Windows main function. Containts the * initialization code and the main loop diff --git a/src/backends/windows/system.c b/src/backends/windows/system.c index 6d4866ad..e877b644 100644 --- a/src/backends/windows/system.c +++ b/src/backends/windows/system.c @@ -48,9 +48,6 @@ static HINSTANCE game_library; static char console_text[256]; static size_t console_textlen; -// TODO -qboolean is_portable; - /* ================================================================ */ void diff --git a/src/common/frame.c b/src/common/frame.c index eab13ab4..5f19a278 100644 --- a/src/common/frame.c +++ b/src/common/frame.c @@ -69,6 +69,9 @@ void Key_Init(void); void SCR_EndLoadingPlaque(void); #endif +// Is the game portable? +qboolean is_portable; + // ---- static void