mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-24 04:29:34 -04:00
check background_lump, cosmetic changes
This commit is contained in:
parent
6663fba661
commit
4bc92a14c3
@ -32,9 +32,8 @@ typedef struct
|
|||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
MapInfo_None = 0x0001,
|
MapInfo_Episode = 0x0001,
|
||||||
MapInfo_Episode = 0x0002,
|
MapInfo_Endgame = 0x0002,
|
||||||
MapInfo_Endgame = 0x0004,
|
|
||||||
} mapinfo_flags_t;
|
} mapinfo_flags_t;
|
||||||
|
|
||||||
typedef struct mapentry_s
|
typedef struct mapentry_s
|
||||||
|
@ -571,6 +571,7 @@ static boolean UpdateAnimation(boolean enteringcondition)
|
|||||||
}
|
}
|
||||||
|
|
||||||
animation->states = NULL;
|
animation->states = NULL;
|
||||||
|
animation->background_lumpnum = -1;
|
||||||
|
|
||||||
if (!enteringcondition && animation->interlevel_exiting)
|
if (!enteringcondition && animation->interlevel_exiting)
|
||||||
{
|
{
|
||||||
@ -597,8 +598,11 @@ static boolean DrawAnimation(void)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
V_DrawPatchFullScreen(
|
if (animation->background_lumpnum >= 0)
|
||||||
V_CachePatchNum(animation->background_lumpnum, PU_CACHE));
|
{
|
||||||
|
V_DrawPatchFullScreen(
|
||||||
|
V_CachePatchNum(animation->background_lumpnum, PU_CACHE));
|
||||||
|
}
|
||||||
|
|
||||||
wi_animationstate_t *state;
|
wi_animationstate_t *state;
|
||||||
array_foreach(state, animation->states)
|
array_foreach(state, animation->states)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user