Toggle to decide to include mappatch objects in textmap conversion for UDMF and Binary
This commit is contained in:
parent
277d4dd2d6
commit
36decf14e7
3 changed files with 18 additions and 2 deletions
|
|
@ -420,6 +420,8 @@ void K_RegisterKartStuff(void)
|
|||
|
||||
CV_RegisterVar(&cv_kartexplosion_limitlifetime);
|
||||
CV_RegisterVar(&cv_kartexplosion_limitlifetime_cap);
|
||||
|
||||
CV_RegisterVar(&cv_writetextmap_includemappatch);
|
||||
}
|
||||
|
||||
//}
|
||||
|
|
|
|||
|
|
@ -119,6 +119,8 @@
|
|||
#include <time.h>
|
||||
#endif
|
||||
|
||||
consvar_t cv_writetextmap_includemappatch = CVAR_INIT ("writetextmap_includemappatch", "Off", CV_SAVE, CV_OnOff, NULL);
|
||||
|
||||
//
|
||||
// Map hash, calculated on level load.
|
||||
// Sent to clients in PT_SERVERINFO.
|
||||
|
|
@ -8016,6 +8018,12 @@ static boolean P_LoadMapFromFile(void)
|
|||
|
||||
P_MakeMapHash(curmapvirt, &maphash);
|
||||
|
||||
if (!cv_writetextmap_includemappatch.value)
|
||||
{
|
||||
if (M_CheckParm("-writetextmap"))
|
||||
P_WriteTextmap();
|
||||
}
|
||||
|
||||
// load map patch?
|
||||
char *patchdata = NULL;
|
||||
size_t patchlen;
|
||||
|
|
@ -8039,8 +8047,12 @@ static boolean P_LoadMapFromFile(void)
|
|||
else
|
||||
P_RemapDoomedNum(true);
|
||||
|
||||
if (M_CheckParm("-writetextmap"))
|
||||
P_WriteTextmap();
|
||||
|
||||
if (cv_writetextmap_includemappatch.value)
|
||||
{
|
||||
if (M_CheckParm("-writetextmap"))
|
||||
P_WriteTextmap();
|
||||
}
|
||||
|
||||
Z_Free(patchdata);
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@ extern "C" {
|
|||
// map hash, sent to players via PT_SERVERINFO
|
||||
extern UINT64 maphash;
|
||||
|
||||
extern consvar_t cv_writetextmap_includemappatch;
|
||||
|
||||
// Player spawn spots for deathmatch.
|
||||
#define MAX_DM_STARTS 64
|
||||
extern mapthing_t *deathmatchstarts[MAX_DM_STARTS];
|
||||
|
|
|
|||
Loading…
Reference in a new issue