diff --git a/source/sw/CMakeLists.txt b/source/sw/CMakeLists.txt index 892ae708d..23bd2cb7b 100644 --- a/source/sw/CMakeLists.txt +++ b/source/sw/CMakeLists.txt @@ -3,10 +3,8 @@ set( PCH_SOURCES src/actor.cpp src/ai.cpp src/anim.cpp - #src/bldscript.cpp src/border.cpp src/break.cpp - #src/brooms.cpp src/bunny.cpp src/cache.cpp src/cheats.cpp @@ -28,7 +26,6 @@ set( PCH_SOURCES src/interpsh.cpp src/interpso.cpp src/inv.cpp - #src/jbhlp.cpp src/jplayer.cpp src/jsector.cpp src/jweapon.cpp @@ -71,7 +68,6 @@ set( PCH_SOURCES src/weapon.cpp src/zilla.cpp src/zombie.cpp - src/swcvar.cpp src/d_menu.cpp ) diff --git a/source/sw/src/actor.cpp b/source/sw/src/actor.cpp index 331e345ae..e78fc6d52 100644 --- a/source/sw/src/actor.cpp +++ b/source/sw/src/actor.cpp @@ -32,7 +32,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" @@ -40,7 +39,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "weapon.h" #include "sprite.h" #include "actor.h" -#include "swcvar.h" BEGIN_SW_NS diff --git a/source/sw/src/ai.cpp b/source/sw/src/ai.cpp index b48f5cf48..5b8980837 100644 --- a/source/sw/src/ai.cpp +++ b/source/sw/src/ai.cpp @@ -28,7 +28,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" #include "common.h" -#include "keys.h" #include "names2.h" #include "game.h" #include "tags.h" diff --git a/source/sw/src/anim.cpp b/source/sw/src/anim.cpp index c73df89ee..f1c8799e6 100644 --- a/source/sw/src/anim.cpp +++ b/source/sw/src/anim.cpp @@ -28,16 +28,14 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" -#include "keys.h" #include "mytypes.h" #include "gamedefs.h" -#include "config.h" #include "sounds.h" #include "gamecontrol.h" #include "game.h" -#include "colormap.h" +#include "misc.h" #include "network.h" #include "animlib.h" diff --git a/source/sw/src/border.cpp b/source/sw/src/border.cpp index 6925f3dfb..0699fb2eb 100644 --- a/source/sw/src/border.cpp +++ b/source/sw/src/border.cpp @@ -27,7 +27,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "lists.h" diff --git a/source/sw/src/break.cpp b/source/sw/src/break.cpp index 8d91d789b..4c063c11c 100644 --- a/source/sw/src/break.cpp +++ b/source/sw/src/break.cpp @@ -26,7 +26,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "ns.h" #include "build.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" diff --git a/source/sw/src/bunny.cpp b/source/sw/src/bunny.cpp index 2510097d0..a96b8c648 100644 --- a/source/sw/src/bunny.cpp +++ b/source/sw/src/bunny.cpp @@ -27,7 +27,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "tags.h" diff --git a/source/sw/src/cache.cpp b/source/sw/src/cache.cpp index 53bfd2748..cc8d24a40 100644 --- a/source/sw/src/cache.cpp +++ b/source/sw/src/cache.cpp @@ -39,7 +39,7 @@ not load" error messages. #include "break.h" #include "quake.h" #include "pal.h" -#include "cache.h" +#include "misc.h" #include "sounds.h" #include "network.h" diff --git a/source/sw/src/cache.h b/source/sw/src/cache.h deleted file mode 100644 index f533acbe0..000000000 --- a/source/sw/src/cache.h +++ /dev/null @@ -1,37 +0,0 @@ -//------------------------------------------------------------------------- -/* -Copyright (C) 1997, 2005 - 3D Realms Entertainment - -This file is part of Shadow Warrior version 1.2 - -Shadow Warrior is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -Original Source: 1997 - Frank Maddin and Jim Norwood -Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms -*/ -//------------------------------------------------------------------------- - -BEGIN_SW_NS - -#define CACHE_SOUND_PRECACHE 0 -#define CACHE_SOUND_PLAY 1 - -void SetupPreCache(void); -void PreCacheRange(short start_pic, short end_pic); -void DoTheCache(void); -void precache(void); - -END_SW_NS diff --git a/source/sw/src/cheats.cpp b/source/sw/src/cheats.cpp index f2bc8c642..480e01c76 100644 --- a/source/sw/src/cheats.cpp +++ b/source/sw/src/cheats.cpp @@ -36,7 +36,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" diff --git a/source/sw/src/cheats.h b/source/sw/src/cheats.h deleted file mode 100644 index d9c6f2bfe..000000000 --- a/source/sw/src/cheats.h +++ /dev/null @@ -1,33 +0,0 @@ -#pragma once - -BEGIN_SW_NS - -void KeysCheat(PLAYERp pp, const char *cheat_string); -void ResCheatOn(PLAYERp, const char *); -void VoxCheat(PLAYERp, const char *); -void RestartCheat(PLAYERp, const char *); -void RoomCheat(PLAYERp, const char *); -void SecretCheat(PLAYERp pp, const char *); -void NextCheat(PLAYERp pp, const char *); -void PrevCheat(PLAYERp pp, const char *); -void MapCheat(PLAYERp pp, const char *); -void LocCheat(PLAYERp pp, const char *); -void GunsCheat(PLAYERp pp, const char *cheat_string); -void AmmoCheat(PLAYERp pp, const char *); -void WeaponCheat(PLAYERp pp, const char *); -void GodCheat(PLAYERp pp, const char *); -void ClipCheat(PLAYERp pp, const char *); -void WarpCheat(PLAYERp pp, const char *cheat_string); -void ItemCheat(PLAYERp pp, const char *cheat_string); -void InventoryCheat(PLAYERp pp, const char *cheat_string); -void ArmorCheat(PLAYERp pp, const char *cheat_string); -void HealCheat(PLAYERp pp, const char *cheat_string); -void SortKeyCheat(PLAYERp pp, const char *sKey); -void KeysCheat(PLAYERp pp, const char *cheat_string); -void EveryCheatToggle(PLAYERp pp, const char *cheat_string); -void GeorgeFunc(PLAYERp pp, char *); -void BlackburnFunc(PLAYERp pp, char *); -int cheatcmp(const char *str1, const char *str2, int len); -void CheatInput(void); - -END_SW_NS diff --git a/source/sw/src/colormap.cpp b/source/sw/src/colormap.cpp index 4913cb59f..cdffc80cf 100644 --- a/source/sw/src/colormap.cpp +++ b/source/sw/src/colormap.cpp @@ -27,7 +27,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" -#include "keys.h" #include "pal.h" #include "game.h" diff --git a/source/sw/src/colormap.h b/source/sw/src/colormap.h deleted file mode 100644 index 7dc7df64a..000000000 --- a/source/sw/src/colormap.h +++ /dev/null @@ -1,12 +0,0 @@ -#ifndef colormap_public_ -#define colormap_public_ - -BEGIN_SW_NS - - -void MapColors(short num,COLOR_MAP cm,short create); -void InitPalette(void); - -END_SW_NS - -#endif diff --git a/source/sw/src/config.cpp b/source/sw/src/config.cpp index 7054568d4..f28511444 100644 --- a/source/sw/src/config.cpp +++ b/source/sw/src/config.cpp @@ -34,7 +34,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "gamedefs.h" #include "gamecontrol.h" #include "sounds.h" -#include "config.h" #include "common_game.h" // we load this in to get default button and key assignments diff --git a/source/sw/src/config.h b/source/sw/src/config.h deleted file mode 100644 index 6d5326fb4..000000000 --- a/source/sw/src/config.h +++ /dev/null @@ -1,54 +0,0 @@ -//------------------------------------------------------------------------- -/* -Copyright (C) 1997, 2005 - 3D Realms Entertainment - -This file is part of Shadow Warrior version 1.2 - -Shadow Warrior is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -Original Source: 1997 - Frank Maddin and Jim Norwood -Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms -*/ -//------------------------------------------------------------------------- - -#ifndef config_public_ -#define config_public_ - -#include "compat.h" - -#include "gamecontrol.h" - -BEGIN_SW_NS - -#define SETUPNAMEPARM "SETUPFILE" - -// screen externs -extern int32_t ScreenBufferMode; -extern int32_t VesaBufferMode; - -extern int32_t EnableRudder; - -extern char setupfilename[BMAX_PATH]; -extern char ExternalControlFilename[64]; - - -int32_t CONFIG_ReadSetup(void); -void WriteCommitFile(int32_t gametype); -void CONFIG_GetSetupFilename(void); - - -END_SW_NS -#endif diff --git a/source/sw/src/console.cpp b/source/sw/src/console.cpp index b53e8dcf5..991eeaef2 100644 --- a/source/sw/src/console.cpp +++ b/source/sw/src/console.cpp @@ -33,7 +33,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" #include "mytypes.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" diff --git a/source/sw/src/coolg.cpp b/source/sw/src/coolg.cpp index cdf01f8cf..c6c02c536 100644 --- a/source/sw/src/coolg.cpp +++ b/source/sw/src/coolg.cpp @@ -27,7 +27,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" -#include "keys.h" #include "names2.h" #include "game.h" #include "tags.h" diff --git a/source/sw/src/coolie.cpp b/source/sw/src/coolie.cpp index 3f2058fcd..8989a2c8b 100644 --- a/source/sw/src/coolie.cpp +++ b/source/sw/src/coolie.cpp @@ -27,7 +27,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "tags.h" diff --git a/source/sw/src/d_menu.cpp b/source/sw/src/d_menu.cpp index dc1b8ffee..4f3501411 100644 --- a/source/sw/src/d_menu.cpp +++ b/source/sw/src/d_menu.cpp @@ -22,7 +22,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include "ns.h" // Must come before everything else! #include "build.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" @@ -40,14 +39,12 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include "gamecontrol.h" #include "gamedefs.h" -#include "config.h" #include "network.h" #include "text.h" #include "version.h" #include "network.h" -#include "colormap.h" -#include "config.h" +#include "misc.h" #include "menu.h" #include "raze_sound.h" #include "sounds.h" diff --git a/source/sw/src/demo.cpp b/source/sw/src/demo.cpp index 27f65ac02..f0de2f570 100644 --- a/source/sw/src/demo.cpp +++ b/source/sw/src/demo.cpp @@ -30,7 +30,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" @@ -476,34 +475,15 @@ DemoPlayBack(void) domovethings(); - // fast forward and slow mo - if (DemoEdit) + if (buttonMap.ButtonDown(gamefunc_See_Coop_View)) { - if (inputState.GetKeyStatus(KEYSC_F)) - { - if (inputState.GetKeyStatus(KEYSC_LSHIFT) || inputState.GetKeyStatus(KEYSC_RSHIFT)) - totalclock += synctics; - else - totalclock += synctics-1; - } + buttonMap.ClearButton(gamefunc_See_Coop_View); - if (inputState.GetKeyStatus(KEYSC_S)) - totalclock += 1-synctics; + screenpeek = connectpoint2[screenpeek]; + + if (screenpeek < 0) + screenpeek = connecthead; } - else - { - - if (buttonMap.ButtonDown(gamefunc_See_Coop_View)) - { - buttonMap.ClearButton(gamefunc_See_Coop_View); - - screenpeek = connectpoint2[screenpeek]; - - if (screenpeek < 0) - screenpeek = connecthead; - } - } - if (DemoSyncRecord) demosync_record(); diff --git a/source/sw/src/draw.cpp b/source/sw/src/draw.cpp index 8d95c0a86..494e208ab 100644 --- a/source/sw/src/draw.cpp +++ b/source/sw/src/draw.cpp @@ -30,7 +30,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "pragmas.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" @@ -47,7 +46,7 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "jtags.h" #include "parent.h" -#include "cache.h" +#include "misc.h" #include "reserve.h" #include "text.h" @@ -55,9 +54,7 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "interp.h" #include "interpso.h" #include "sector.h" -#include "config.h" #include "menu.h" -#include "swcvar.h" #include "v_2ddrawer.h" #include "v_video.h" #include "glbackend/glbackend.h" @@ -1079,13 +1076,14 @@ ResizeView(PLAYERp pp) { int32_t timepassed = (int32_t)(totalclock - mapzoomclock); mapzoomclock += timepassed; - if (inputState.GetKeyStatus(KEYSC_DASH)||inputState.GetKeyStatus(KEYSC_GMINUS)) + if (buttonMap.ButtonDown(gamefunc_Shrink_Screen)) zoom = max(zoom - mulscale7(timepassed * synctics, zoom), 48); - if (inputState.GetKeyStatus(KEYSC_EQUAL)||inputState.GetKeyStatus(KEYSC_GPLUS)) + if (buttonMap.ButtonDown(gamefunc_Enlarge_Screen)) zoom = min(zoom + mulscale7(timepassed * synctics, zoom), 4096); - if (inputState.GetKeyStatus(KEYSC_ESC)) +#if 0 + if (inputState.GetKeyStatus(sc_Escape)) { extern SWBOOL ScrollMode2D; @@ -1094,6 +1092,7 @@ ResizeView(PLAYERp pp) ScrollMode2D = FALSE; SetRedrawScreen(pp); } +#endif } else { diff --git a/source/sw/src/eel.cpp b/source/sw/src/eel.cpp index 4eddbcd6d..812911511 100644 --- a/source/sw/src/eel.cpp +++ b/source/sw/src/eel.cpp @@ -27,7 +27,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" -#include "keys.h" #include "names2.h" #include "game.h" #include "tags.h" diff --git a/source/sw/src/game.cpp b/source/sw/src/game.cpp index be537a3e9..260b027eb 100644 --- a/source/sw/src/game.cpp +++ b/source/sw/src/game.cpp @@ -47,7 +47,6 @@ Things required to make savegames work: #include "baselayer.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" @@ -64,21 +63,19 @@ Things required to make savegames work: #include "mytypes.h" -//#include "config.h" #include "menus.h" #include "gamecontrol.h" #include "gamedefs.h" -#include "config.h" #include "demo.h" -#include "cache.h" +#include "misc.h" //#include "exports.h" #include "anim.h" -#include "colormap.h" +#include "misc.h" #include "break.h" #include "ninja.h" #include "light.h" @@ -105,6 +102,9 @@ Things required to make savegames work: //#include "crc32.h" +CVAR(Bool, sw_ninjahack, false, CVAR_ARCHIVE | CVAR_GLOBALCONFIG); +CVAR(Bool, sw_darts, false, CVAR_ARCHIVE | CVAR_GLOBALCONFIG); + BEGIN_SW_NS void pClearSpriteList(PLAYERp pp); @@ -2024,7 +2024,7 @@ void StatScreen(PLAYERp mpp) PlaySong(nullptr, ThemeSongs[1], ThemeTrack[1]); - while (!inputState.GetKeyStatus(KEYSC_SPACE) && !inputState.GetKeyStatus(KEYSC_ENTER)) + while (!inputState.CheckAllInput()) { handleevents(); } @@ -2682,7 +2682,7 @@ FunctionKeys(PLAYERp pp) { buttonMap.ClearButton(gamefunc_Third_Person_View); - if (inputState.GetKeyStatus(KEYSC_LSHIFT) || inputState.GetKeyStatus(KEYSC_RSHIFT)) + if (SHIFTS_IS_PRESSED) { if (TEST(pp->Flags, PF_VIEW_FROM_OUTSIDE)) pp->view_outside_dang = NORM_ANGLE(pp->view_outside_dang + 256); @@ -2818,7 +2818,7 @@ getinput(SW_PACKET *loc, SWBOOL tied) if (M_Active() || ScrollMode2D || InputMode) return; - SET_LOC_KEY(loc->bits, SK_SPACE_BAR, ((!!inputState.GetKeyStatus(KEYSC_SPACE)) | buttonMap.ButtonDown(gamefunc_Open))); + SET_LOC_KEY(loc->bits, SK_SPACE_BAR, buttonMap.ButtonDown(gamefunc_Open)); int const running = G_CheckAutorun(buttonMap.ButtonDown(gamefunc_Run)); int32_t turnamount; @@ -3141,7 +3141,7 @@ getinput(SW_PACKET *loc, SWBOOL tied) SET_LOC_KEY(loc->bits, SK_HIDE_WEAPON, buttonMap.ButtonDown(gamefunc_Holster_Weapon)); // need BUTTON - SET_LOC_KEY(loc->bits, SK_CRAWL_LOCK, inputState.GetKeyStatus(KEYSC_NUM)); + SET_LOC_KEY(loc->bits, SK_CRAWL_LOCK, buttonMap.ButtonDown(gamefunc_Toggle_Crouch)); if (gNet.MultiGameType == MULTI_GAME_COOPERATIVE) { diff --git a/source/sw/src/game.h b/source/sw/src/game.h index db761f5c6..158a76798 100644 --- a/source/sw/src/game.h +++ b/source/sw/src/game.h @@ -47,6 +47,10 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "pragmas.h" #include "gamecvars.h" #include "raze_sound.h" +#include "c_cvars.h" + +EXTERN_CVAR(Bool, sw_ninjahack) +EXTERN_CVAR(Bool, sw_darts) BEGIN_SW_NS @@ -241,59 +245,6 @@ extern char MessageOutputString[256]; // dist at which actors roam about on their own #define MIN_ACTIVE_RANGE 20000 -#undef KEYSC_UP -#define KEYSC_UP sc_UpArrow -#undef KEYSC_DOWN -#define KEYSC_DOWN sc_DownArrow -#undef KEYSC_LEFT -#define KEYSC_LEFT sc_LeftArrow -#undef KEYSC_RIGHT -#define KEYSC_RIGHT sc_RightArrow -#undef KEYSC_INS -#define KEYSC_INS sc_Insert -#undef KEYSC_DEL -#define KEYSC_DEL sc_Delete -#undef KEYSC_HOME -#define KEYSC_HOME sc_Home -#undef KEYSC_END -#define KEYSC_END sc_End -#undef KEYSC_PGUP -#define KEYSC_PGUP sc_PgUp -#undef KEYSC_PGDN -#define KEYSC_PGDN sc_PgDn - -#define KEYSC_RALT sc_RightAlt -#define KEYSC_RCTRL sc_RightControl -#define KEYSC_KPSLASH sc_kpad_Slash -#define KEYSC_KPENTER sc_kpad_Enter -#define KEYSC_PRINTSCREEN sc_PrintScreen -#define KEYSC_LASTSC sc_LastScanCode - -#define KEYSC_KP_1 sc_kpad_1 -#define KEYSC_KP_2 sc_kpad_2 -#define KEYSC_KP_3 sc_kpad_3 -#define KEYSC_KP_4 sc_kpad_4 -#define KEYSC_KP_6 sc_kpad_6 -#define KEYSC_KP_5 sc_kpad_5 -#define KEYSC_KP_7 sc_kpad_7 -#define KEYSC_KP_8 sc_kpad_8 -#define KEYSC_KP_9 sc_kpad_9 -#define KEYSC_KP_0 sc_kpad_0 -#define KEYSC_KPMINUS sc_kpad_Minus -#define KEYSC_KPPLUS sc_kpad_Plus -#define KEYSC_KPPERIOD sc_kpad_Period - -#define KEYSC_EUP sc_UpArrow -#define KEYSC_EDOWN sc_DownArrow -#define KEYSC_ELEFT sc_LeftArrow -#define KEYSC_ERIGHT sc_RightArrow -#define KEYSC_EINS sc_Insert -#define KEYSC_EDEL sc_Delete -#define KEYSC_EHOME sc_Home -#define KEYSC_EEND sc_End -#define KEYSC_EPGUP sc_PgUp -#define KEYSC_EPGDN sc_PgDn - // // NETWORK - REDEFINABLE SHARED (SYNC) KEYS BIT POSITIONS // diff --git a/source/sw/src/girlninj.cpp b/source/sw/src/girlninj.cpp index 4657294fb..ca9f79d39 100644 --- a/source/sw/src/girlninj.cpp +++ b/source/sw/src/girlninj.cpp @@ -27,7 +27,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" diff --git a/source/sw/src/goro.cpp b/source/sw/src/goro.cpp index 05edb7662..cfa822dc9 100644 --- a/source/sw/src/goro.cpp +++ b/source/sw/src/goro.cpp @@ -27,7 +27,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" -#include "keys.h" #include "names2.h" #include "tags.h" #include "game.h" diff --git a/source/sw/src/hornet.cpp b/source/sw/src/hornet.cpp index 2b223384e..0a8d639ba 100644 --- a/source/sw/src/hornet.cpp +++ b/source/sw/src/hornet.cpp @@ -27,7 +27,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" -#include "keys.h" #include "names2.h" #include "game.h" #include "tags.h" diff --git a/source/sw/src/inv.cpp b/source/sw/src/inv.cpp index d8a603186..c215a6b56 100644 --- a/source/sw/src/inv.cpp +++ b/source/sw/src/inv.cpp @@ -29,13 +29,12 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #undef MAIN #include "build.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" #include "pal.h" #include "text.h" -#include "colormap.h" +#include "misc.h" #include "player.h" BEGIN_SW_NS diff --git a/source/sw/src/jnames.h b/source/sw/src/jnames.h deleted file mode 100644 index 31adf1252..000000000 --- a/source/sw/src/jnames.h +++ /dev/null @@ -1,37 +0,0 @@ -//------------------------------------------------------------------------- -/* -Copyright (C) 1997, 2005 - 3D Realms Entertainment - -This file is part of Shadow Warrior version 1.2 - -Shadow Warrior is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -Original Source: 1997 - Frank Maddin and Jim Norwood -Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms -*/ -//------------------------------------------------------------------------- - -// My pic names file - -#ifndef JNAMES_H -#define JNAMES_H - -#define MIRROR 340 -#define FLOORMIRROR 341 -#define CAMSPRITE 3830 - - -#endif diff --git a/source/sw/src/jplayer.cpp b/source/sw/src/jplayer.cpp index c5cb54f17..8e6e8274c 100644 --- a/source/sw/src/jplayer.cpp +++ b/source/sw/src/jplayer.cpp @@ -31,7 +31,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" #include "mytypes.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" diff --git a/source/sw/src/jsector.cpp b/source/sw/src/jsector.cpp index d425e7549..cf1463976 100644 --- a/source/sw/src/jsector.cpp +++ b/source/sw/src/jsector.cpp @@ -30,9 +30,7 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" -#include "keys.h" #include "names2.h" -#include "jnames.h" #include "panel.h" #include "game.h" #include "tags.h" diff --git a/source/sw/src/jweapon.cpp b/source/sw/src/jweapon.cpp index 5ddc64d93..49ba856da 100644 --- a/source/sw/src/jweapon.cpp +++ b/source/sw/src/jweapon.cpp @@ -28,7 +28,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" #include "common.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" diff --git a/source/sw/src/keys.h b/source/sw/src/keys.h deleted file mode 100644 index 52973c0d8..000000000 --- a/source/sw/src/keys.h +++ /dev/null @@ -1,137 +0,0 @@ -//------------------------------------------------------------------------- -/* -Copyright (C) 1997, 2005 - 3D Realms Entertainment - -This file is part of Shadow Warrior version 1.2 - -Shadow Warrior is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -See the GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - -Original Source: 1997 - Frank Maddin and Jim Norwood -Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms -*/ -//------------------------------------------------------------------------- - -#ifndef KEYS_H - -#define KEYS_H - -#include "mytypes.h" - -#define NUM_CODES 128 - -#define ESC 0x1B -#define ENTER 0x0D - -#define KEYSC_ESC 1 -#define KEYSC_1 2 -#define KEYSC_2 3 -#define KEYSC_3 4 -#define KEYSC_4 5 -#define KEYSC_5 6 -#define KEYSC_6 7 -#define KEYSC_7 8 -#define KEYSC_8 9 -#define KEYSC_9 10 -#define KEYSC_0 11 -#define KEYSC_DASH 12 -#define KEYSC_EQUAL 13 - -#define KEYSC_BS 14 -#define KEYSC_TAB 15 -#define KEYSC_Q 16 -#define KEYSC_W 17 -#define KEYSC_E 18 -#define KEYSC_R 19 -#define KEYSC_T 20 -#define KEYSC_Y 21 -#define KEYSC_U 22 -#define KEYSC_I 23 -#define KEYSC_O 24 -#define KEYSC_P 25 -#define KEYSC_LBRACK 26 -#define KEYSC_RBRACK 27 -#define KEYSC_ENTER 28 - -#define KEYSC_CTRL 29 -#define KEYSC_A 30 -#define KEYSC_S 31 -#define KEYSC_D 32 -#define KEYSC_F 33 -#define KEYSC_G 34 -#define KEYSC_H 35 -#define KEYSC_J 36 -#define KEYSC_K 37 -#define KEYSC_L 38 -#define KEYSC_SEMI 39 -#define KEYSC_QUOTE 40 -#define KEYSC_BQUOTE 41 -#define KEYSC_TILDE 41 - -#define KEYSC_LSHIFT 42 -#define KEYSC_BSLASH 43 -#define KEYSC_Z 44 -#define KEYSC_X 45 -#define KEYSC_C 46 -#define KEYSC_V 47 -#define KEYSC_B 48 -#define KEYSC_N 49 -#define KEYSC_M 50 -#define KEYSC_COMMA 51 -#define KEYSC_PERIOD 52 -#define KEYSC_SLASH 53 -#define KEYSC_RSHIFT 54 -#define KEYSC_STAR 55 - -#define KEYSC_ALT 56 -#define KEYSC_SPACE 57 -#define KEYSC_CAPS 58 - -#define KEYSC_F1 59 -#define KEYSC_F2 60 -#define KEYSC_F3 61 -#define KEYSC_F4 62 -#define KEYSC_F5 63 -#define KEYSC_F6 64 -#define KEYSC_F7 65 -#define KEYSC_F8 66 -#define KEYSC_F9 67 -#define KEYSC_F10 68 - -#define KEYSC_F11 0x57 -#define KEYSC_F12 0x58 - -#define KEYSC_NUM 69 -#define KEYSC_SCROLL 70 - -#define KEYSC_HOME 71 -#define KEYSC_UP 72 -#define KEYSC_PGUP 73 -#define KEYSC_GMINUS 74 -#define KEYSC_LEFT 75 -#define KEYSC_KP5 76 -#define KEYSC_RIGHT 77 -#define KEYSC_GPLUS 78 -#define KEYSC_END 79 -#define KEYSC_DOWN 80 -#define KEYSC_PGDN 81 -#define KEYSC_INS 82 -#define KEYSC_DEL 83 - -#define asc_Esc 27 -#define asc_Enter 13 -#define asc_Space 32 - -#endif diff --git a/source/sw/src/lava.cpp b/source/sw/src/lava.cpp index 3b5abde05..807180c54 100644 --- a/source/sw/src/lava.cpp +++ b/source/sw/src/lava.cpp @@ -27,7 +27,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" diff --git a/source/sw/src/mclip.cpp b/source/sw/src/mclip.cpp index 959827838..9d4ba3d93 100644 --- a/source/sw/src/mclip.cpp +++ b/source/sw/src/mclip.cpp @@ -29,7 +29,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "common.h" #include "mytypes.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" diff --git a/source/sw/src/menus.cpp b/source/sw/src/menus.cpp index ee5d2a514..a62af7b1f 100644 --- a/source/sw/src/menus.cpp +++ b/source/sw/src/menus.cpp @@ -27,7 +27,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" @@ -46,14 +45,12 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "gamecontrol.h" #include "gamedefs.h" -#include "config.h" #include "network.h" #include "text.h" #include "version.h" #include "network.h" -#include "colormap.h" -#include "config.h" +#include "misc.h" #include "palettecontainer.h" BEGIN_SW_NS diff --git a/source/sw/src/misc.h b/source/sw/src/misc.h new file mode 100644 index 000000000..132e15b97 --- /dev/null +++ b/source/sw/src/misc.h @@ -0,0 +1,52 @@ +#pragma once + +#include "game.h" + +// This consolidates the contents of several smaller includes +BEGIN_SW_NS + +enum +{ + CACHE_SOUND_PRECACHE = 0, + CACHE_SOUND_PLAY =1 +}; + +void SetupPreCache(void); +void PreCacheRange(short start_pic, short end_pic); +void DoTheCache(void); +void precache(void); + + +void KeysCheat(PLAYERstruct * pp, const char *cheat_string); +void ResCheatOn(PLAYERstruct *, const char *); +void VoxCheat(PLAYERstruct *, const char *); +void RestartCheat(PLAYERstruct *, const char *); +void RoomCheat(PLAYERstruct *, const char *); +void SecretCheat(PLAYERstruct * pp, const char *); +void NextCheat(PLAYERstruct * pp, const char *); +void PrevCheat(PLAYERstruct * pp, const char *); +void MapCheat(PLAYERstruct * pp, const char *); +void LocCheat(PLAYERstruct * pp, const char *); +void GunsCheat(PLAYERstruct * pp, const char *cheat_string); +void AmmoCheat(PLAYERstruct * pp, const char *); +void WeaponCheat(PLAYERstruct * pp, const char *); +void GodCheat(PLAYERstruct * pp, const char *); +void ClipCheat(PLAYERstruct * pp, const char *); +void WarpCheat(PLAYERstruct * pp, const char *cheat_string); +void ItemCheat(PLAYERstruct * pp, const char *cheat_string); +void InventoryCheat(PLAYERstruct * pp, const char *cheat_string); +void ArmorCheat(PLAYERstruct * pp, const char *cheat_string); +void HealCheat(PLAYERstruct * pp, const char *cheat_string); +void SortKeyCheat(PLAYERstruct * pp, const char *sKey); +void KeysCheat(PLAYERstruct * pp, const char *cheat_string); +void EveryCheatToggle(PLAYERstruct * pp, const char *cheat_string); +void GeorgeFunc(PLAYERstruct * pp, char *); +void BlackburnFunc(PLAYERstruct * pp, char *); +int cheatcmp(const char *str1, const char *str2, int len); +void CheatInput(void); + +void MapColors(short num,COLOR_MAP cm,short create); +void InitPalette(void); +int32_t CONFIG_ReadSetup(void); + +END_SW_NS diff --git a/source/sw/src/miscactr.cpp b/source/sw/src/miscactr.cpp index 5ee197464..2b746c224 100644 --- a/source/sw/src/miscactr.cpp +++ b/source/sw/src/miscactr.cpp @@ -27,7 +27,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" diff --git a/source/sw/src/morph.cpp b/source/sw/src/morph.cpp index 26da88073..312897ade 100644 --- a/source/sw/src/morph.cpp +++ b/source/sw/src/morph.cpp @@ -29,7 +29,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "names2.h" #include "panel.h" -//#include "keys.h" #include "tags.h" #include "sector.h" #include "ai.h" diff --git a/source/sw/src/names.h b/source/sw/src/names.h index 2e2893d74..f638318ce 100644 --- a/source/sw/src/names.h +++ b/source/sw/src/names.h @@ -92,3 +92,7 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #define BLACK___ 2306 #define FragBarErase 2375 #define FragBarErase2 2376 + +#define MIRROR 340 +#define FLOORMIRROR 341 +#define CAMSPRITE 3830 diff --git a/source/sw/src/network.cpp b/source/sw/src/network.cpp index deb9d338e..eb233579c 100644 --- a/source/sw/src/network.cpp +++ b/source/sw/src/network.cpp @@ -31,7 +31,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "gamecontrol.h" -#include "keys.h" #include "game.h" #include "tags.h" #include "names2.h" @@ -608,16 +607,12 @@ waitforeverybody(void) } #endif - //inputState.GetKeyStatus(KEYSC_ESC) = FALSE; Player[myconnectindex].playerreadyflag++; while (TRUE) { if (PlayerQuitMenuLevel >= 0) { - //DSPRINTF(ds,"%d, Player Quit Menu Level %d", myconnectindex, PlayerQuitMenuLevel); - //DebugWriteString(ds); - MenuCommPlayerQuit(PlayerQuitMenuLevel); PlayerQuitMenuLevel = -1; } @@ -627,22 +622,12 @@ waitforeverybody(void) if (wfe_ExitCallback && wfe_ExitCallback()) { - // allow exit - //if (inputState.GetKeyStatus(KEYSC_ESC)) - { -// short pnum; - //TRAVERSE_CONNECT(pnum) - { - //if (pnum != myconnectindex) - { - tempbuf[0] = PACKET_TYPE_MENU_LEVEL_QUIT; - //netsendpacket(pnum, tempbuf, 1); - netbroadcastpacket(tempbuf, 1); - } - } + tempbuf[0] = PACKET_TYPE_MENU_LEVEL_QUIT; + //netsendpacket(pnum, tempbuf, 1); + netbroadcastpacket(tempbuf, 1); + + TerminateGame(); - TerminateGame(); - } } #if 0 diff --git a/source/sw/src/ninja.cpp b/source/sw/src/ninja.cpp index ed6c0999f..9924ab365 100644 --- a/source/sw/src/ninja.cpp +++ b/source/sw/src/ninja.cpp @@ -33,7 +33,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" @@ -47,7 +46,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "actor.h" #include "ninja.h" #include "sprite.h" -#include "swcvar.h" BEGIN_SW_NS diff --git a/source/sw/src/osdcmds.cpp b/source/sw/src/osdcmds.cpp index 2b3abdbb6..eb9f87578 100644 --- a/source/sw/src/osdcmds.cpp +++ b/source/sw/src/osdcmds.cpp @@ -29,7 +29,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include "build.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" @@ -43,7 +42,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. #include "v_text.h" #include "printf.h" -#include "cheats.h" +#include "misc.h" #include "demo.h" // g_firstDemoFile[] #include "menus.h" #include "mapinfo.h" diff --git a/source/sw/src/panel.cpp b/source/sw/src/panel.cpp index 39bcdf3ec..47089bd50 100644 --- a/source/sw/src/panel.cpp +++ b/source/sw/src/panel.cpp @@ -30,7 +30,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" #include "common.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "lists.h" @@ -45,7 +44,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "weapon.h" #include "menu.h" -#include "swcvar.h" #include "raze_sound.h" BEGIN_SW_NS @@ -1568,24 +1566,6 @@ pSwordRest(PANEL_SPRITEp psp) { SWBOOL force = !!TEST(psp->flags, PANF_UNHIDE_SHOOT); -#if 0 - if (inputState.GetKeyStatus(KEYSC_SEMI)) - { - inputState.GetKeyStatus(KEYSC_SEMI) = 0; - SwordAng -= 4; - //DSPRINTF(ds,"SwordAng %d", SwordAng); - MONO_PRINT(ds); - } - - if (inputState.GetKeyStatus(KEYSC_QUOTE)) - { - inputState.GetKeyStatus(KEYSC_QUOTE) = 0; - SwordAng += 4; - //DSPRINTF(ds,"SwordAng %d", SwordAng); - MONO_PRINT(ds); - } -#endif - if (pWeaponHideKeys(psp, ps_SwordHide)) return; diff --git a/source/sw/src/player.cpp b/source/sw/src/player.cpp index c596bc024..cd73d1b46 100644 --- a/source/sw/src/player.cpp +++ b/source/sw/src/player.cpp @@ -29,7 +29,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "common.h" #include "mytypes.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" @@ -58,7 +57,7 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "jsector.h" #include "sector.h" #include "actor.h" -#include "colormap.h" +#include "misc.h" #include "vis.h" #include "track.h" #include "interp.h" @@ -4195,11 +4194,13 @@ SWBOOL PlayerFlyKey(void) if (InputMode) return FALSE; +#if 0 + // Cheat or not, this simply won't do. key = inputState.GetKeyStatus(KEYSC_J); if (key) inputState.ClearKeyStatus(KEYSC_J); - +#endif return key; } @@ -7402,7 +7403,6 @@ DoPlayerRun(PLAYERp pp) } // Crawl lock - // if (inputState.GetKeyStatus(KEYSC_NUM)) if (TEST_SYNC_KEY(pp, SK_CRAWL_LOCK)) { if (FLAG_KEY_PRESSED(pp, SK_CRAWL_LOCK)) @@ -7993,26 +7993,6 @@ domovethings(void) so_updateinterpolations(); // Stick at beginning of domovethings MoveSkipSavePos(); -#if 0 - { - if (inputState.GetKeyStatus(KEYSC_F5) && !(inputState.GetKeyStatus(KEYSC_ALT) || inputState.GetKeyStatus(KEYSC_RALT)) && !paused) - { - inputState.GetKeyStatus(KEYSC_F5) = 0; - ResChange(); - } - } -#endif - - -#if 0 // has been moved to draw code - extern SWBOOL ResCheat; - if (ResCheat) - { - ResCheat = FALSE; - ResChange(); - } -#endif - // check for pause of multi-play game if (CommEnabled) PauseMultiPlay(); diff --git a/source/sw/src/predict.cpp b/source/sw/src/predict.cpp index f6bd190b4..fe23933e0 100644 --- a/source/sw/src/predict.cpp +++ b/source/sw/src/predict.cpp @@ -29,7 +29,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #define QUIET #include "build.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" diff --git a/source/sw/src/ripper.cpp b/source/sw/src/ripper.cpp index 7d0b1bf8b..f3547c71c 100644 --- a/source/sw/src/ripper.cpp +++ b/source/sw/src/ripper.cpp @@ -27,7 +27,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" diff --git a/source/sw/src/ripper2.cpp b/source/sw/src/ripper2.cpp index 7b0edab85..478f1d565 100644 --- a/source/sw/src/ripper2.cpp +++ b/source/sw/src/ripper2.cpp @@ -26,7 +26,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "ns.h" #include "build.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" diff --git a/source/sw/src/save.cpp b/source/sw/src/save.cpp index 77957cee2..9eba78568 100644 --- a/source/sw/src/save.cpp +++ b/source/sw/src/save.cpp @@ -30,7 +30,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #define QUIET #include "build.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" @@ -49,8 +48,7 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms //#define FILE_TYPE 1 #include "weapon.h" -#include "cache.h" -#include "colormap.h" +#include "misc.h" #include "player.h" #include "i_specialpaths.h" #include "savegamehelp.h" diff --git a/source/sw/src/scrip2.cpp b/source/sw/src/scrip2.cpp index 445378b91..3fa3b40ac 100644 --- a/source/sw/src/scrip2.cpp +++ b/source/sw/src/scrip2.cpp @@ -29,7 +29,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" diff --git a/source/sw/src/sector.cpp b/source/sw/src/sector.cpp index 4458c06d4..c54ef9e95 100644 --- a/source/sw/src/sector.cpp +++ b/source/sw/src/sector.cpp @@ -27,7 +27,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" #include "common.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" diff --git a/source/sw/src/serp.cpp b/source/sw/src/serp.cpp index f45c7c775..86717087e 100644 --- a/source/sw/src/serp.cpp +++ b/source/sw/src/serp.cpp @@ -26,7 +26,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "ns.h" #include "build.h" -#include "keys.h" #include "names2.h" #include "game.h" #include "tags.h" diff --git a/source/sw/src/skel.cpp b/source/sw/src/skel.cpp index 416a304b6..2770062c5 100644 --- a/source/sw/src/skel.cpp +++ b/source/sw/src/skel.cpp @@ -26,7 +26,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "ns.h" #include "build.h" -#include "keys.h" #include "names2.h" #include "game.h" #include "tags.h" diff --git a/source/sw/src/skull.cpp b/source/sw/src/skull.cpp index bb1438a90..3a352cfb4 100644 --- a/source/sw/src/skull.cpp +++ b/source/sw/src/skull.cpp @@ -26,7 +26,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "ns.h" #include "build.h" -#include "keys.h" #include "names2.h" #include "game.h" #include "tags.h" diff --git a/source/sw/src/sounds.cpp b/source/sw/src/sounds.cpp index 49cf36654..df339e51a 100644 --- a/source/sw/src/sounds.cpp +++ b/source/sw/src/sounds.cpp @@ -28,14 +28,9 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "compat.h" #include "build.h" - -#include "keys.h" - #include "names2.h" #include "mytypes.h" #include "gamedefs.h" -#include "config.h" - #include "panel.h" #include "game.h" @@ -43,16 +38,16 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "ai.h" #include "network.h" -#include "cache.h" +#include "misc.h" #include "text.h" #include "rts.h" #include "menus.h" -#include "config.h" #include "menu.h" #include "raze_music.h" #include "raze_sound.h" #include "filesystem.h" #include "serializer.h" +#include "gamecontrol.h" BEGIN_SW_NS diff --git a/source/sw/src/sprite.cpp b/source/sw/src/sprite.cpp index fbb828ea1..d3466761a 100644 --- a/source/sw/src/sprite.cpp +++ b/source/sw/src/sprite.cpp @@ -26,7 +26,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "ns.h" #include "build.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" @@ -48,7 +47,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "text.h" #include "slidor.h" #include "player.h" -#include "swcvar.h" #include "quotemgr.h" #include "v_text.h" #include "gamecontrol.h" diff --git a/source/sw/src/sumo.cpp b/source/sw/src/sumo.cpp index 2502bf569..4b920cff8 100644 --- a/source/sw/src/sumo.cpp +++ b/source/sw/src/sumo.cpp @@ -26,7 +26,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "ns.h" #include "build.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" diff --git a/source/sw/src/swcvar.cpp b/source/sw/src/swcvar.cpp deleted file mode 100644 index eca95381f..000000000 --- a/source/sw/src/swcvar.cpp +++ /dev/null @@ -1,4 +0,0 @@ -#include "swcvar.h" - -CVAR(Bool, sw_ninjahack, false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG); -CVAR(Bool, sw_darts, false, CVAR_ARCHIVE|CVAR_GLOBALCONFIG); diff --git a/source/sw/src/swcvar.h b/source/sw/src/swcvar.h deleted file mode 100644 index 41502f714..000000000 --- a/source/sw/src/swcvar.h +++ /dev/null @@ -1,5 +0,0 @@ -#include "c_cvars.h" - - -EXTERN_CVAR(Bool, sw_ninjahack) -EXTERN_CVAR(Bool, sw_darts) diff --git a/source/sw/src/sync.cpp b/source/sw/src/sync.cpp index 81940aec5..7c8bef408 100644 --- a/source/sw/src/sync.cpp +++ b/source/sw/src/sync.cpp @@ -26,7 +26,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "ns.h" #include "build.h" -#include "keys.h" #include "game.h" #include "tags.h" #include "names2.h" diff --git a/source/sw/src/text.cpp b/source/sw/src/text.cpp index 49b264852..95df86d02 100644 --- a/source/sw/src/text.cpp +++ b/source/sw/src/text.cpp @@ -27,7 +27,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #undef MAIN #include "build.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "lists.h" diff --git a/source/sw/src/track.cpp b/source/sw/src/track.cpp index f20e2c06f..ab3245d71 100644 --- a/source/sw/src/track.cpp +++ b/source/sw/src/track.cpp @@ -28,7 +28,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "names2.h" #include "panel.h" -//#include "keys.h" #include "tags.h" #include "sector.h" #include "ai.h" diff --git a/source/sw/src/wallmove.cpp b/source/sw/src/wallmove.cpp index 124adb78a..9a4481421 100644 --- a/source/sw/src/wallmove.cpp +++ b/source/sw/src/wallmove.cpp @@ -26,9 +26,7 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "ns.h" #include "build.h" -//#include "keys.h" #include "names2.h" -//#include "panel.h" #include "game.h" #include "tags.h" #include "common_game.h" diff --git a/source/sw/src/weapon.cpp b/source/sw/src/weapon.cpp index 95f9e8f9c..c2c6943e6 100644 --- a/source/sw/src/weapon.cpp +++ b/source/sw/src/weapon.cpp @@ -27,7 +27,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "build.h" #include "common.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" @@ -40,7 +39,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "network.h" #include "pal.h" #include "vis.h" -#include "swcvar.h" #include "ai.h" #include "weapon.h" diff --git a/source/sw/src/zilla.cpp b/source/sw/src/zilla.cpp index 17879bd98..ee8327f60 100644 --- a/source/sw/src/zilla.cpp +++ b/source/sw/src/zilla.cpp @@ -26,7 +26,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "ns.h" #include "build.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h" diff --git a/source/sw/src/zombie.cpp b/source/sw/src/zombie.cpp index 709f2a8f0..dc64ca9b5 100644 --- a/source/sw/src/zombie.cpp +++ b/source/sw/src/zombie.cpp @@ -26,7 +26,6 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms #include "ns.h" #include "build.h" -#include "keys.h" #include "names2.h" #include "panel.h" #include "game.h"