Subversion Repositories eduke32

Rev

Rev 8686 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8686 Rev 8781
Line 78... Line 78...
78
{
78
{
79
    Level--;
79
    Level--;
80
    ExitLevel = TRUE;
80
    ExitLevel = TRUE;
81
}
81
}
82
82
83
static int32_t showallmap;
-
 
84
-
 
85
void MapCheat(PLAYERp pp, char *UNUSED(cheat_string))
83
void MapCheat(PLAYERp pp, char *UNUSED(cheat_string))
86
{
84
{
87
    showallmap ^= 1;
85
    automapping ^= 1;
88
86
89
    if (showallmap)
87
    if (automapping)
90
        MapSetAll2D(0);
88
        MapSetAll2D(0);
91
    else
89
    else
92
        MapSetAll2D(0xFF);
90
        MapSetAll2D(0xFF);
93
91
94
    sprintf(ds, "SHOWALLMAP %s", showallmap ? "ON" : "OFF");
92
    sprintf(ds, "AUTOMAPPING %s", automapping ? "ON" : "OFF");
95
    PutStringInfo(pp, ds);
93
    PutStringInfo(pp, ds);
96
}
94
}
97
95
98
96
99
void LocCheat(PLAYERp UNUSED(pp), char *UNUSED(cheat_string))
97
void LocCheat(PLAYERp UNUSED(pp), char *UNUSED(cheat_string))