From 90cd009b23cbe8261c352e34bf4c363ddb65ec71 Mon Sep 17 00:00:00 2001 From: MascaraSnake Date: Sat, 8 Jan 2022 16:58:55 +0100 Subject: [PATCH] Remove writethings because it no longer works properly with the binary-to-UDMF conversion --- src/d_netcmd.c | 2 +- src/m_cheat.c | 4 ++-- src/m_cheat.h | 2 +- src/p_setup.c | 4 ++-- src/p_setup.h | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/d_netcmd.c b/src/d_netcmd.c index fe7e7678f..b0f776183 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -880,7 +880,7 @@ void D_RegisterClientCommands(void) // ingame object placing COM_AddCommand("objectplace", Command_ObjectPlace_f); - COM_AddCommand("writethings", Command_Writethings_f); + //COM_AddCommand("writethings", Command_Writethings_f); CV_RegisterVar(&cv_speed); CV_RegisterVar(&cv_opflags); CV_RegisterVar(&cv_ophoopflags); diff --git a/src/m_cheat.c b/src/m_cheat.c index 2f90b54ee..2b72905d5 100644 --- a/src/m_cheat.c +++ b/src/m_cheat.c @@ -1428,14 +1428,14 @@ void OP_ObjectplaceMovement(player_t *player) // // Objectplace related commands. // -void Command_Writethings_f(void) +/*void Command_Writethings_f(void) { REQUIRE_INLEVEL; REQUIRE_SINGLEPLAYER; REQUIRE_OBJECTPLACE; P_WriteThings(); -} +}*/ void Command_ObjectPlace_f(void) { diff --git a/src/m_cheat.h b/src/m_cheat.h index ee4ba5f55..5caeae59b 100644 --- a/src/m_cheat.h +++ b/src/m_cheat.h @@ -26,7 +26,7 @@ void cht_Init(void); // ObjectPlace // void Command_ObjectPlace_f(void); -void Command_Writethings_f(void); +//void Command_Writethings_f(void); extern consvar_t cv_opflags, cv_ophoopflags, cv_mapthingnum, cv_speed; //extern consvar_t cv_snapto, cv_grid; diff --git a/src/p_setup.c b/src/p_setup.c index 74f761f24..4ba794781 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -907,7 +907,7 @@ static void P_SpawnMapThings(boolean spawnemblems) } // Experimental groovy write function! -void P_WriteThings(void) +/*void P_WriteThings(void) { size_t i, length; mapthing_t *mt; @@ -942,7 +942,7 @@ void P_WriteThings(void) savebuf_p = NULL; CONS_Printf(M_GetText("newthings%d.lmp saved.\n"), gamemap); -} +}*/ // // MAP LOADING FUNCTIONS diff --git a/src/p_setup.h b/src/p_setup.h index c3c680fdd..0a7c2bd43 100644 --- a/src/p_setup.h +++ b/src/p_setup.h @@ -107,7 +107,7 @@ boolean P_AddFolder(const char *folderpath); boolean P_RunSOC(const char *socfilename); void P_LoadSoundsRange(UINT16 wadnum, UINT16 first, UINT16 num); void P_LoadMusicsRange(UINT16 wadnum, UINT16 first, UINT16 num); -void P_WriteThings(void); +//void P_WriteThings(void); size_t P_PrecacheLevelFlats(void); void P_AllocMapHeader(INT16 i);