mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 02:01:31 +00:00
- animation precaching cleanup.
No need to handle animations on the,game side. markTileForPrecache already handles this - now also for oscillating animations.
This commit is contained in:
parent
4f2170655c
commit
738c133d05
6 changed files with 18 additions and 69 deletions
|
@ -102,7 +102,7 @@ TMap<int64_t, bool> cachemap;
|
|||
void markTileForPrecache(int tilenum, int palnum)
|
||||
{
|
||||
int i, j;
|
||||
if ((picanm[tilenum].sf & PICANM_ANIMTYPE_MASK) == PICANM_ANIMTYPE_BACK)
|
||||
if (picanm[tilenum].type() == PICANM_ANIMTYPE_BACK)
|
||||
{
|
||||
i = tilenum - picanm[tilenum].num;
|
||||
j = tilenum;
|
||||
|
@ -110,7 +110,7 @@ void markTileForPrecache(int tilenum, int palnum)
|
|||
else
|
||||
{
|
||||
i = tilenum;
|
||||
j = tilenum + picanm[tilenum].num;
|
||||
j = tilenum + picanm[tilenum].num * ((picanm[tilenum].type() == PICANM_ANIMTYPE_OSC) ? 2 : 1);
|
||||
}
|
||||
|
||||
for (; i <= j; i++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue