Exemplo n.º 1
0
void WI_loadData(void)
{
    if (gamemode == commercial)
    {
        NUMCMAPS = 32;
        lnames = (patch_t **) Z_Malloc(sizeof(patch_t*) * NUMCMAPS,
                                       PU_STATIC, NULL);
    }
    else
    {
        lnames = (patch_t **) Z_Malloc(sizeof(patch_t*) * NUMMAPS,
                                       PU_STATIC, NULL);
    }

    WI_loadUnloadData(WI_loadCallback);

    // These two graphics are special cased because we're sharing
    // them with the status bar code

    // your face
    star = W_CacheLumpName(DEH_String("STFST01"), PU_STATIC);

    // dead face
    bstar = W_CacheLumpName(DEH_String("STFDEAD0"), PU_STATIC);
}
Exemplo n.º 2
0
void WI_loadData(void)
{
    if (gamemode == commercial)
    {
	NUMCMAPS = (crispy_havemap33) ? 33 : 32;
	lnames = (patch_t **) Z_Malloc(sizeof(patch_t*) * NUMCMAPS,
				       PU_STATIC, NULL);
    }
    else
    {
	// [crispy] support E1M10 "Sewers"
	int nummaps = crispy_havee1m10 ? NUMMAPS + 1 : NUMMAPS;
	lnames = (patch_t **) Z_Malloc(sizeof(patch_t*) * nummaps,
				       PU_STATIC, NULL);
    }

    WI_loadUnloadData(WI_loadCallback);

    // These two graphics are special cased because we're sharing
    // them with the status bar code

    // your face
    star = W_CacheLumpName(DEH_String("STFST01"), PU_STATIC);

    // dead face
    bstar = W_CacheLumpName(DEH_String("STFDEAD0"), PU_STATIC);
}
Exemplo n.º 3
0
void WI_unloadData(void)
{
    WI_loadUnloadData(WI_unloadCallback);

    // We do not free these lumps as they are shared with the status
    // bar code.

    // W_ReleaseLumpName("STFST01");
    // W_ReleaseLumpName("STFDEAD0");
}
Exemplo n.º 4
0
void WI_loadData(void)
{
    char        bg_lumpname[9];
    patch_t     *bg;

    if (gamemode == commercial)
    {
        NUMCMAPS = 32 + (W_CheckNumForName("MAP33") >= 0);
        lnames = (patch_t **)Z_Malloc(sizeof(patch_t *) * NUMCMAPS, PU_STATIC, NULL);
    }
    else
        lnames = (patch_t **)Z_Malloc(sizeof(patch_t *) * NUMMAPS, PU_STATIC, NULL);

    WI_loadUnloadData(WI_loadCallback);

    // These two graphics are special cased because we're sharing
    // them with the status bar code

    // your face
    star = (patch_t *)W_CacheLumpName("STFST01", PU_STATIC);

    // dead face
    bstar = (patch_t *)W_CacheLumpName("STFDEAD0", PU_STATIC);

    // Background image

    if (gamemode == commercial || (gamemode == retail && wbs->epsd == 3))
    {
        strncpy(bg_lumpname, (DMENUPIC ? "DMENUPIC" : "INTERPIC"), 9);
        bg_lumpname[8] = '\0';
    }
    else
        snprintf(bg_lumpname, 9, "WIMAP%d", wbs->epsd);
    bg = (patch_t *)W_CacheLumpName(bg_lumpname, PU_CACHE);
    V_DrawPatch(0, 0, 1, bg);
}
Exemplo n.º 5
0
void WI_unloadData(void)
{
    WI_loadUnloadData(WI_unloadCallback);
}