1 // Emacs style mode select -*- C++ -*- 2 //----------------------------------------------------------------------------- 3 // 4 // $Id:$ 5 // 6 // Copyright (C) 1993-1996 by id Software, Inc. 7 // 8 // This source is available for distribution and/or modification 9 // only under the terms of the DOOM Source Code License as 10 // published by id Software. All rights reserved. 11 // 12 // The source is distributed in the hope that it will be useful, 13 // but WITHOUT ANY WARRANTY; without even the implied warranty of 14 // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License 15 // for more details. 16 // 17 // $Log:$ 18 // 19 // DESCRIPTION: 20 // Put all global state variables here. 21 // 22 //----------------------------------------------------------------------------- 23 24 25 26 #include "stringtable.h" 27 #include "doomstat.h" 28 #include "c_cvars.h" 29 #include "i_system.h" 30 #include "g_level.h" 31 #include "p_local.h" 32 33 int SaveVersion; 34 35 // Localizable strings 36 FStringTable GStrings; 37 38 // Game speed 39 EGameSpeed GameSpeed = SPEED_Normal; 40 41 // Show developer messages if true. 42 CVAR (Bool, developer, false, 0) 43 44 // [RH] Feature control cvars 45 CVAR (Bool, var_friction, true, CVAR_SERVERINFO); 46 CVAR (Bool, var_pushers, true, CVAR_SERVERINFO); 47 48 CVAR (Bool, alwaysapplydmflags, false, CVAR_SERVERINFO); 49 50 CUSTOM_CVAR (Float, teamdamage, 0.f, CVAR_SERVERINFO) 51 { 52 level.teamdamage = self; 53 } 54 55 CUSTOM_CVAR (String, language, "auto", CVAR_ARCHIVE) 56 { 57 SetLanguageIDs (); 58 GStrings.LoadStrings (false); 59 if (level.info != NULL) level.LevelName = level.info->LookupLevelName(); 60 } 61 62 // [RH] Network arbitrator 63 int Net_Arbitrator = 0; 64 65 int NextSkill = -1; 66 67 int SinglePlayerClass[MAXPLAYERS]; 68 69 bool ToggleFullscreen; 70 int BorderTopRefresh; 71 72 FString LumpFilterIWAD; 73