| 1 |
/* Emacs style mode select -*- C -*- |
| 2 |
*----------------------------------------------------------------------------- |
| 3 |
* |
| 4 |
* |
| 5 |
* PrBoom: a Doom port merged with LxDoom and LSDLDoom |
| 6 |
* based on BOOM, a modified and improved DOOM engine |
| 7 |
* Copyright (C) 1999 by |
| 8 |
* id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman |
| 9 |
* Copyright (C) 1999-2000 by |
| 10 |
* Jess Haas, Nicolas Kalkhof, Colin Phipps, Florian Schulze |
| 11 |
* Copyright 2005, 2006 by |
| 12 |
* Florian Schulze, Colin Phipps, Neil Stevens, Andrey Budko |
| 13 |
* |
| 14 |
* This program is free software; you can redistribute it and/or |
| 15 |
* modify it under the terms of the GNU General Public License |
| 16 |
* as published by the Free Software Foundation; either version 2 |
| 17 |
* of the License, or (at your option) any later version. |
| 18 |
* |
| 19 |
* This program is distributed in the hope that it will be useful, |
| 20 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 22 |
* GNU General Public License for more details. |
| 23 |
* |
| 24 |
* You should have received a copy of the GNU General Public License |
| 25 |
* along with this program; if not, write to the Free Software |
| 26 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA |
| 27 |
* 02111-1307, USA. |
| 28 |
* |
| 29 |
* DESCRIPTION: |
| 30 |
* Put all global state variables here. |
| 31 |
* |
| 32 |
*----------------------------------------------------------------------------- |
| 33 |
*/ |
| 34 |
|
| 35 |
#include "doomstat.h" |
| 36 |
|
| 37 |
#include "dsda/map_format.h" |
| 38 |
|
| 39 |
// Game Mode - identify IWAD as shareware, retail etc. |
| 40 |
GameMode_t gamemode = indetermined; |
| 41 |
GameMission_t gamemission = doom; |
| 42 |
|
| 43 |
dboolean tc_game; |
| 44 |
|
| 45 |
// Language. |
| 46 |
Language_t language = english; |
| 47 |
|
| 48 |
// Set if homebrew PWAD stuff has been added. |
| 49 |
dboolean modifiedgame; |
| 50 |
|
| 51 |
//----------------------------------------------------------------------------- |
| 52 |
|
| 53 |
// CPhipps - compatibility vars |
| 54 |
complevel_t compatibility_level; |
| 55 |
|
| 56 |
// e6y |
| 57 |
// it's required for demos recorded in "demo compatibility" mode by boom201 for example |
| 58 |
int demover; |
| 59 |
|
| 60 |
int comp[MBF_COMP_TOTAL]; // killough 10/98 |
| 61 |
int default_comperr[COMPERR_NUM]; |
| 62 |
|
| 63 |
int demo_insurance; // killough 1/16/98 |
| 64 |
|
| 65 |
int allow_pushers = 1; // MT_PUSH Things // phares 3/10/98 |
| 66 |
|
| 67 |
int variable_friction = 1; // ice & mud // phares 3/10/98 |
| 68 |
|
| 69 |
int weapon_recoil = 0; // weapon recoil // phares |
| 70 |
|
| 71 |
int player_bobbing = 1; // whether player bobs or not // phares 2/25/98 |
| 72 |
|
| 73 |
int monsters_remember = 1; // killough 3/1/98 |
| 74 |
|
| 75 |
int monster_infighting=1; // killough 7/19/98: monster<=>monster attacks |
| 76 |
|
| 77 |
int monster_friction=1; // killough 10/98: monsters affected by friction |
| 78 |
|
| 79 |
int dogs; // killough 7/19/98: Marine's best friend :) |
| 80 |
int dog_jumping; // killough 10/98 |
| 81 |
|
| 82 |
// killough 8/8/98: distance friends tend to move towards players |
| 83 |
int distfriend = 128; |
| 84 |
|
| 85 |
// killough 9/8/98: whether monsters are allowed to strafe or retreat |
| 86 |
int monster_backing; |
| 87 |
|
| 88 |
// killough 9/9/98: whether monsters are able to avoid hazards (e.g. crushers) |
| 89 |
int monster_avoid_hazards; |
| 90 |
|
| 91 |
// killough 9/9/98: whether monsters help friends |
| 92 |
int help_friends; |
| 93 |
|
| 94 |
int monkeys; |
| 95 |
|
| 96 |
char *VANILLA_MAP_LUMP_NAME(int e, int m) |
| 97 |
{ |
| 98 |
static char name[9]; |
| 99 |
|
| 100 |
if (gamemode == commercial || map_format.map99) |
| 101 |
snprintf(name, sizeof(name), "MAP%02d", m); |
| 102 |
else |
| 103 |
snprintf(name, sizeof(name), "E%dM%d", e, m); |
| 104 |
|
| 105 |
return name; |
| 106 |
} |