static void ST_drawLevelTitle(void)
{
char *lvlttl = mapheaderinfo[gamemap-1].lvlttl;
char *subttl = mapheaderinfo[gamemap-1].subttl;
INT32 lvlttlxpos;
INT32 subttlxpos = BASEVIDWIDTH/2;
INT32 ttlnumxpos;
INT32 zonexpos;
INT32 actnum = mapheaderinfo[gamemap-1].actnum;
boolean nonumber = false;
if (!(timeinmap > 1 && timeinmap < 111))
return;
if (actnum > 0)
{
ttlnum = W_CachePatchName(va("TTL%.2d", actnum), PU_CACHE);
lvlttlxpos = ((BASEVIDWIDTH/2) - (V_LevelNameWidth(lvlttl)/2)) - SHORT(ttlnum->width);
}
else
{
nonumber = true;
lvlttlxpos = ((BASEVIDWIDTH/2) - (V_LevelNameWidth(lvlttl)/2));
}
ttlnumxpos = lvlttlxpos + V_LevelNameWidth(lvlttl);
zonexpos = ttlnumxpos - V_LevelNameWidth(text[ZONE]);
if (lvlttlxpos < 0)
lvlttlxpos = 0;
if (timeinmap == 2)
{
if (!nonumber)
V_DrawScaledPatch(0, 0, 0, W_CachePatchName("LVLCNM", PU_CACHE));
V_DrawScaledPatch(0, 200, 0, W_CachePatchName("LVLCBG", PU_CACHE));
V_DrawScaledPatch(SCX(ttlnumxpos), (int)(200*vid.fdupy), V_NOSCALESTART, ttlnum);
V_DrawLevelTitle(lvlttlxpos, 0, 0, lvlttl);
if (!mapheaderinfo[gamemap-1].nozone)
V_DrawLevelTitle(zonexpos, 200, 0, text[ZONE]);
//if(mapheaderinfo[gamemap-1].mapcredits[0] != '\0')
// V_DrawCenteredString(20, 140, V_YELLOWMAP, va("by: %s", mapcredits));
V_DrawCenteredString(subttlxpos, 0+48, 0, subttl);
}
else if (timeinmap == 3)
{
if (!nonumber)
V_DrawScaledPatch(0, 0, 0, W_CachePatchName("LVLCNM", PU_CACHE));
V_DrawScaledPatch(0, 171, 0, W_CachePatchName("LVLCBG", PU_CACHE));
V_DrawScaledPatch(SCX(ttlnumxpos), (int)(188*vid.fdupy), V_NOSCALESTART, ttlnum);
V_DrawLevelTitle(lvlttlxpos, 12, 0, lvlttl);
if (!mapheaderinfo[gamemap-1].nozone)
V_DrawLevelTitle(zonexpos, 188, 0, text[ZONE]);
//if(mapheaderinfo[gamemap-1].mapcredits[0] != '\0')
// V_DrawCenteredString(40, 140, V_YELLOWMAP, va("by: %s", mapcredits));
V_DrawCenteredString(subttlxpos, 12+48, 0, subttl);
}
else if (timeinmap == 4)
{
if (!nonumber)
V_DrawScaledPatch(0, 0, 0, W_CachePatchName("LVLCNM", PU_CACHE));
V_DrawScaledPatch(0, 151, 0, W_CachePatchName("LVLCBG", PU_CACHE));
V_DrawScaledPatch(SCX(0), (int)(176*vid.fdupy), V_NOSCALESTART, ttlnum);
V_DrawLevelTitle(lvlttlxpos, 24, 0, lvlttl);
if (!mapheaderinfo[gamemap-1].nozone)
V_DrawLevelTitle(zonexpos, 176, 0, text[ZONE]);
//if(mapheaderinfo[gamemap-1].mapcredits[0] != '\0')
// V_DrawCenteredString(60, 140, V_YELLOWMAP, va("by: %s", mapcredits));
V_DrawCenteredString(subttlxpos, 24+48, 0, subttl);
}
else if (timeinmap == 5)
{
if (!nonumber)
V_DrawScaledPatch(0, 0, 0, W_CachePatchName("LVLCNM", PU_CACHE));
V_DrawScaledPatch(0, 131, 0, W_CachePatchName("LVLCBG", PU_CACHE));
V_DrawScaledPatch(SCX(ttlnumxpos), (int)(164*vid.fdupy), V_NOSCALESTART, ttlnum);
V_DrawLevelTitle(lvlttlxpos, 36, 0, lvlttl);
if (!mapheaderinfo[gamemap-1].nozone)
V_DrawLevelTitle(zonexpos, 164, 0, text[ZONE]);
// if(mapheaderinfo[gamemap-1].mapcredits[0] != '\0')
// V_DrawCenteredString(80, 140, V_YELLOWMAP, va("by: %s", mapcredits));
V_DrawCenteredString(subttlxpos, 36+48, 0, subttl);
}
else if (timeinmap == 6)
{
if (!nonumber)
V_DrawScaledPatch(0, 0, 0, W_CachePatchName("LVLCNM", PU_CACHE));
V_DrawScaledPatch(0, 111, 0, W_CachePatchName("LVLCBG", PU_CACHE));
V_DrawScaledPatch(SCX(ttlnumxpos), (int)(152*vid.fdupy), V_NOSCALESTART, ttlnum);
V_DrawLevelTitle(lvlttlxpos, 48, 0, lvlttl);
if (!mapheaderinfo[gamemap-1].nozone)
V_DrawLevelTitle(zonexpos, 152, 0, text[ZONE]);
//if(mapheaderinfo[gamemap-1].mapcredits[0] != '\0')
// V_DrawCenteredString(100, 140, V_YELLOWMAP, va("by: %s", mapcredits));
V_DrawCenteredString(subttlxpos, 48+48, 0, subttl);
}
else if (timeinmap == 7)
{
if (!nonumber)
V_DrawScaledPatch(0, 0, 0, W_CachePatchName("LVLCNM", PU_CACHE));
V_DrawScaledPatch(0, 71, 0, W_CachePatchName("LVLCBG", PU_CACHE));
V_DrawScaledPatch(SCX(ttlnumxpos), (int)(140*vid.fdupy), V_NOSCALESTART, ttlnum);
V_DrawLevelTitle(lvlttlxpos, 60, 0, lvlttl);
if (!mapheaderinfo[gamemap-1].nozone)
V_DrawLevelTitle(zonexpos, 140, 0, text[ZONE]);
//if(mapheaderinfo[gamemap-1].mapcredits[0] != '\0')
//V_DrawCenteredString(120, 140, V_YELLOWMAP, va("by: %s", mapcredits));
V_DrawCenteredString(subttlxpos, 60+48, 0, subttl);
}
else if (timeinmap == 8)
{
if (!nonumber)
V_DrawScaledPatch(0, 0, 0, W_CachePatchName("LVLCNM", PU_CACHE));
V_DrawScaledPatch(0, 41, 0, W_CachePatchName("LVLCBG", PU_CACHE));
V_DrawScaledPatch(SCX(ttlnumxpos), (int)(128*vid.fdupy), V_NOSCALESTART, ttlnum);
V_DrawLevelTitle(lvlttlxpos, 72, 0, lvlttl);
if (!mapheaderinfo[gamemap-1].nozone)
V_DrawLevelTitle(zonexpos, 128, 0, text[ZONE]);
//if(mapheaderinfo[gamemap-1].mapcredits[0] != '\0')
//V_DrawCenteredString(140, 140, V_YELLOWMAP, va("by: %s", mapcredits));
V_DrawCenteredString(subttlxpos, 72+48, 0, subttl);
}
else if (timeinmap == 106)
{
if (!nonumber)
V_DrawScaledPatch(0, 0, 0, W_CachePatchName("LVLCNM", PU_CACHE));
V_DrawScaledPatch(0, 11, 0, W_CachePatchName("LVLCBG", PU_CACHE));
V_DrawScaledPatch(SCX(ttlnumxpos), (int)(80*vid.fdupy), V_NOSCALESTART, ttlnum);
V_DrawLevelTitle(lvlttlxpos, 104, 0, lvlttl);
if (!mapheaderinfo[gamemap-1].nozone)
V_DrawLevelTitle(zonexpos, 80, 0, text[ZONE]);
//if(mapheaderinfo[gamemap-1].mapcredits[0] != '\0')
//V_DrawCenteredString(190, 140, V_YELLOWMAP, va("by: %s", mapcredits));
V_DrawCenteredString(subttlxpos, 104+48, 0, subttl);
}
else if (timeinmap == 107)
{
if (!nonumber)
V_DrawScaledPatch(0, 0, 0, W_CachePatchName("LVLCNM", PU_CACHE));
V_DrawScaledPatch(0, 0, 0, W_CachePatchName("LVLCBG", PU_CACHE));
V_DrawScaledPatch(SCX(ttlnumxpos), (int)(56*vid.fdupy), V_NOSCALESTART, ttlnum);
V_DrawLevelTitle(lvlttlxpos, 128, 0, lvlttl);
if (!mapheaderinfo[gamemap-1].nozone)
V_DrawLevelTitle(zonexpos, 56, 0, text[ZONE]);
//if(mapheaderinfo[gamemap-1].mapcredits[0] != '\0')
//V_DrawCenteredString(220, 140, V_YELLOWMAP, va("by: %s", mapcredits));
V_DrawCenteredString(subttlxpos, 128+48, 0, subttl);
}
else if (timeinmap == 108)
{
if (!nonumber)
V_DrawScaledPatch(0, 0, 0, W_CachePatchName("LVLCNM", PU_CACHE));
V_DrawScaledPatch(0, 0, 0, W_CachePatchName("LVLCBG", PU_CACHE));
V_DrawScaledPatch(SCX(ttlnumxpos), (int)(32*vid.fdupy), V_NOSCALESTART, ttlnum);
V_DrawLevelTitle(lvlttlxpos, 152, 0, lvlttl);
if (!mapheaderinfo[gamemap-1].nozone)
V_DrawLevelTitle(zonexpos, 32, 0, text[ZONE]);
//if(mapheaderinfo[gamemap-1].mapcredits[0] != '\0')
//V_DrawCenteredString(250, 140, V_YELLOWMAP, va("by: %s", mapcredits));
// V_DrawCenteredString(subttlxpos, 152+48, 0, subttl);
}
else if (timeinmap == 109)
{
if (!nonumber)
V_DrawScaledPatch(0, 0, 0, W_CachePatchName("LVLCNM", PU_CACHE));
V_DrawScaledPatch(0, 0, 0, W_CachePatchName("LVLCBG", PU_CACHE));
V_DrawScaledPatch(SCX(ttlnumxpos), (int)(8*vid.fdupy), V_NOSCALESTART, ttlnum);
V_DrawLevelTitle(lvlttlxpos, 176, 0, lvlttl);
if (!mapheaderinfo[gamemap-1].nozone)
V_DrawLevelTitle(zonexpos, 8, 0, text[ZONE]);
//if(mapheaderinfo[gamemap-1].mapcredits[0] != '\0')
//V_DrawCenteredString(280, 140, V_YELLOWMAP, va("by: %s", mapcredits));
//V_DrawCenteredString(subttlxpos, 176+48, 0, subttl);
}
else if (timeinmap == 110)
{
if (!nonumber)
V_DrawScaledPatch(0, 0, 0, W_CachePatchName("LVLCNM", PU_CACHE));
V_DrawScaledPatch(0, 0, 0, W_CachePatchName("LVLCBG", PU_CACHE));
V_DrawScaledPatch(SCX(ttlnumxpos), (int)(0*vid.fdupy), V_NOSCALESTART, ttlnum);
V_DrawLevelTitle(lvlttlxpos, 200, 0, lvlttl);
if (!mapheaderinfo[gamemap-1].nozone)
V_DrawLevelTitle(zonexpos, 0, 0, text[ZONE]);
//if(mapheaderinfo[gamemap-1].mapcredits[0] != '\0')
//V_DrawCenteredString(300, 140, V_YELLOWMAP, va("by: %s", mapcredits));
//V_DrawCenteredString(subttlxpos, 200+48, 0, subttl);
}
else
{
if (!nonumber)
V_DrawScaledPatch(0, 0, 0, W_CachePatchName("LVLCNM", PU_CACHE));
V_DrawScaledPatch(0, 0, 0, W_CachePatchName("LVLCBG", PU_CACHE));
V_DrawScaledPatch(SCX(ttlnumxpos), (int)(104*vid.fdupy), V_NOSCALESTART, ttlnum);
V_DrawLevelTitle(lvlttlxpos, 80, 0, lvlttl);
if (!mapheaderinfo[gamemap-1].nozone)
V_DrawLevelTitle(zonexpos, 104, 0, text[ZONE]);
//if(mapheaderinfo[gamemap-1].mapcredits[0] != '\0')
//V_DrawCenteredString(160, 140, V_YELLOWMAP, va("by: %s", mapcredits));
V_DrawCenteredString(subttlxpos, 80+48, 0, subttl);
}
#undef ZONE
}