Subversion Repositories eduke32

Compare Revisions

Ignore whitespace Rev 8780 → Rev 8781

/source/sw/src/cheats.cpp
80,18 → 80,16
ExitLevel = TRUE;
}
 
static int32_t showallmap;
 
void MapCheat(PLAYERp pp, char *UNUSED(cheat_string))
{
showallmap ^= 1;
automapping ^= 1;
 
if (showallmap)
if (automapping)
MapSetAll2D(0);
else
MapSetAll2D(0xFF);
 
sprintf(ds, "SHOWALLMAP %s", showallmap ? "ON" : "OFF");
sprintf(ds, "AUTOMAPPING %s", automapping ? "ON" : "OFF");
PutStringInfo(pp, ds);
}
 
/source/sw/src/game.cpp
634,7 → 634,13
void
MapSetup(void)
{
#define NO_AUTO_MAPPING FALSE
 
#if NO_AUTO_MAPPING
MapSetAll2D(0xFF);
#else
automapping = TRUE;
#endif
}
 
void