2015-05-19 21:54:34 +00:00
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
/*
|
|
|
|
Copyright (C) 1997, 2005 - 3D Realms Entertainment
|
|
|
|
|
|
|
|
This file is part of Shadow Warrior version 1.2
|
|
|
|
|
|
|
|
Shadow Warrior is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
|
|
|
|
See the GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
|
|
|
Original Source: 1997 - Frank Maddin and Jim Norwood
|
|
|
|
Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms
|
|
|
|
*/
|
|
|
|
//-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
/****************************************
|
|
|
|
Removed sounds that were causing "Could
|
|
|
|
not load" error messages.
|
|
|
|
****************************************/
|
2019-10-09 16:09:05 +00:00
|
|
|
#include "ns.h"
|
2015-05-19 21:54:34 +00:00
|
|
|
|
|
|
|
#include "build.h"
|
|
|
|
|
|
|
|
#include "names2.h"
|
|
|
|
#include "game.h"
|
|
|
|
#include "tags.h"
|
|
|
|
#include "break.h"
|
|
|
|
#include "pal.h"
|
2020-08-05 15:07:19 +00:00
|
|
|
#include "misc.h"
|
2015-05-19 21:54:34 +00:00
|
|
|
#include "sounds.h"
|
2019-03-21 02:24:19 +00:00
|
|
|
#include "network.h"
|
2021-04-11 07:59:55 +00:00
|
|
|
#include "precache.h"
|
2015-05-19 21:54:34 +00:00
|
|
|
|
2019-10-09 16:09:05 +00:00
|
|
|
BEGIN_SW_NS
|
|
|
|
|
2015-05-19 21:54:34 +00:00
|
|
|
// Run the game with the -CACHEPRINT option and redirect to a file.
|
|
|
|
// It will save out the tile and sound number every time one caches.
|
|
|
|
//
|
|
|
|
// sw -map $bullet -cacheprint > foofile
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCacheRange(int start_pic, int end_pic, int pal = 0)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
for (int j = start_pic; j <= end_pic; j++)
|
|
|
|
{
|
|
|
|
markTileForPrecache(j, pal);
|
|
|
|
}
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCacheOverride(void)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-10-31 20:00:21 +00:00
|
|
|
SWStatIterator it(STAT_CEILING_FLOOR_PIC_OVERRIDE);
|
|
|
|
while (auto actor = it.Next())
|
2021-04-11 08:20:52 +00:00
|
|
|
{
|
2021-12-24 13:12:21 +00:00
|
|
|
int j = SP_TAG2(actor);
|
2021-04-11 08:20:52 +00:00
|
|
|
if(j >= 0 && j <= MAXTILES)
|
|
|
|
markTileForPrecache(j, 0);
|
|
|
|
}
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void precacheMap(void)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
int i;
|
|
|
|
int j;
|
|
|
|
SECTORp sectp;
|
|
|
|
WALLp wp;
|
|
|
|
|
2021-12-21 08:23:39 +00:00
|
|
|
for(auto& sec: sector)
|
2021-04-11 08:20:52 +00:00
|
|
|
{
|
2021-11-28 08:06:12 +00:00
|
|
|
j = sec.ceilingpicnum;
|
|
|
|
markTileForPrecache(j, sec.ceilingpal);
|
2021-04-11 08:20:52 +00:00
|
|
|
|
2021-12-29 05:53:36 +00:00
|
|
|
if ((picanm[j].sf & PICANM_ANIMTYPE_MASK) >> PICANM_ANIMTYPE_SHIFT)
|
2021-04-11 08:20:52 +00:00
|
|
|
{
|
|
|
|
for (i = 1; i <= picanm[j].num; i++)
|
|
|
|
{
|
2021-11-28 08:06:12 +00:00
|
|
|
markTileForPrecache(j + i, sec.ceilingpal);
|
2021-04-11 08:20:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-28 08:06:12 +00:00
|
|
|
j = sec.floorpicnum;
|
2021-04-11 08:20:52 +00:00
|
|
|
|
2021-11-28 08:06:12 +00:00
|
|
|
markTileForPrecache(j, sec.floorpal);
|
2021-04-11 08:20:52 +00:00
|
|
|
|
2021-12-29 05:53:36 +00:00
|
|
|
if ((picanm[j].sf & PICANM_ANIMTYPE_MASK) >> PICANM_ANIMTYPE_SHIFT)
|
2021-04-11 08:20:52 +00:00
|
|
|
{
|
|
|
|
for (i = 1; i <= picanm[j].num; i++)
|
|
|
|
{
|
2021-11-28 08:06:12 +00:00
|
|
|
markTileForPrecache(j + i, sec.floorpal);
|
2021-04-11 08:20:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2021-12-21 08:23:39 +00:00
|
|
|
for (auto& wal : wall)
|
2021-04-11 08:20:52 +00:00
|
|
|
{
|
2021-11-28 08:06:12 +00:00
|
|
|
j = wal.picnum;
|
2021-04-11 08:20:52 +00:00
|
|
|
|
2021-11-28 08:06:12 +00:00
|
|
|
markTileForPrecache(j, wal.pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
|
2021-12-29 05:53:36 +00:00
|
|
|
if ((picanm[j].sf & PICANM_ANIMTYPE_MASK) >> PICANM_ANIMTYPE_SHIFT)
|
2021-04-11 08:20:52 +00:00
|
|
|
{
|
|
|
|
for (i = 1; i <= picanm[j].num; i++)
|
|
|
|
{
|
2021-11-28 08:06:12 +00:00
|
|
|
markTileForPrecache(j + i, wal.pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-11-28 08:06:12 +00:00
|
|
|
if (wal.overpicnum > 0 && wal.overpicnum < MAXTILES)
|
2021-04-11 08:20:52 +00:00
|
|
|
{
|
2021-11-28 08:06:12 +00:00
|
|
|
j = wal.overpicnum;
|
|
|
|
markTileForPrecache(j, wal.pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
|
2021-12-29 05:53:36 +00:00
|
|
|
if ((picanm[j].sf & PICANM_ANIMTYPE_MASK) >> PICANM_ANIMTYPE_SHIFT)
|
2021-04-11 08:20:52 +00:00
|
|
|
{
|
|
|
|
for (i = 1; i <= picanm[j].num; i++)
|
|
|
|
{
|
2021-11-28 08:06:12 +00:00
|
|
|
markTileForPrecache(j + i, wal.pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void SetupPreCache(void)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
precacheMap();
|
|
|
|
|
2021-12-30 09:30:21 +00:00
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
// actors cache ranges are called from SpriteSetup
|
|
|
|
// only caches the actor if its on the level
|
|
|
|
|
|
|
|
// weapons
|
|
|
|
PreCacheRange(2000, 2227);
|
|
|
|
PreCacheRange(4090, 4093);
|
|
|
|
// Explosions
|
|
|
|
PreCacheRange(3072, 3225);
|
|
|
|
// ninja player character
|
|
|
|
PreCacheRange(1024, 1175);
|
|
|
|
// console
|
|
|
|
PreCacheRange(2380, 2409);
|
|
|
|
PreCacheRange(3600, 3645);
|
|
|
|
PreCacheRange(2434, 2435);
|
|
|
|
// common
|
|
|
|
PreCacheRange(204, 208);
|
|
|
|
// message font
|
|
|
|
PreCacheRange(4608, 4701);
|
|
|
|
// gibs
|
|
|
|
PreCacheRange(1150,1568);
|
|
|
|
PreCacheRange(1685,1690);
|
|
|
|
PreCacheRange(900,944);
|
|
|
|
PreCacheRange(1670,1681);
|
|
|
|
// blood
|
|
|
|
PreCacheRange(1710,1715);
|
|
|
|
PreCacheRange(2410,2425);
|
|
|
|
PreCacheRange(389,389); // blood puddle by itself in art file
|
|
|
|
PreCacheRange(2500,2503);
|
|
|
|
// shrap
|
|
|
|
PreCacheRange(3840,3911);
|
|
|
|
PreCacheRange(3924,3947);
|
|
|
|
PreCacheRange(1397,1398);
|
|
|
|
// water *** animated tiles, can be deleted now ***
|
|
|
|
// PreCacheRange(780,794);
|
|
|
|
// switches
|
|
|
|
PreCacheRange(561,584);
|
|
|
|
PreCacheRange(551,552);
|
|
|
|
PreCacheRange(1846,1847);
|
|
|
|
PreCacheRange(1850,1859);
|
|
|
|
// bullet smoke
|
|
|
|
PreCacheRange(1748,1753);
|
|
|
|
// gas can
|
|
|
|
PreCacheRange(3038,3042);
|
|
|
|
// lava *** animated tiles, can be deleted now ***
|
|
|
|
// PreCacheRange(175,182);
|
|
|
|
// gas clouds & teleport effect
|
|
|
|
PreCacheRange(3240,3277);
|
|
|
|
// nuke mushroom cloud
|
|
|
|
PreCacheRange(3280,3300);
|
|
|
|
// blood drops
|
|
|
|
PreCacheRange(1718,1721);
|
|
|
|
// smoke
|
|
|
|
PreCacheRange(3948,3968);
|
|
|
|
// footprints
|
|
|
|
PreCacheRange(2490,2492);
|
|
|
|
// player fists
|
|
|
|
PreCacheRange(4070,4077);
|
|
|
|
PreCacheRange(4050,4051);
|
|
|
|
PreCacheRange(4090,4093);
|
|
|
|
// fish actor
|
|
|
|
PreCacheRange(3760,3771);
|
|
|
|
PreCacheRange(3780,3795);
|
|
|
|
// coins
|
|
|
|
PreCacheRange(2531,2533);
|
|
|
|
// respawn markers & console keys
|
|
|
|
PreCacheRange(2440,2467);
|
|
|
|
// light/torch sprites
|
|
|
|
PreCacheRange(537,548);
|
|
|
|
PreCacheRange(521,528);
|
|
|
|
PreCacheRange(512,515);
|
|
|
|
PreCacheRange(396,399);
|
|
|
|
PreCacheRange(443,446);
|
|
|
|
// bubbles
|
|
|
|
PreCacheRange(716,720);
|
|
|
|
// bullet splashes
|
|
|
|
PreCacheRange(772,776);
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCacheRipper(int pal)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
PreCacheRange(1580, 1644, pal);
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCacheRipper2(int pal)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
PreCacheRange(4320, 4427, pal);
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCacheGhost(int pal)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
PreCacheRange(4277, 4312, pal);
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCacheCoolie(int pal)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
PreCacheGhost(pal);
|
|
|
|
PreCacheRange(1400, 1440, pal);
|
|
|
|
PreCacheRange(4260, 4276, pal); // coolie explode
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCacheSerpent(int pal)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
PreCacheRange(960, 1016, pal);
|
|
|
|
PreCacheRange(1300, 1314, pal);
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCacheGuardian(int pal)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
PreCacheRange(1469,1497, pal);
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCacheNinja(int pal)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
PreCacheRange(4096, 4239, pal);
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCacheNinjaGirl(int pal)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
PreCacheRange(5162, 5260, pal);
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCacheSumo(int pal)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
PreCacheRange(4490, 4544, pal);
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCacheZilla(int pal)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
PreCacheRange(4490, 4544, pal);
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCacheEel(int pal)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
PreCacheRange(4430, 4479, pal);
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCacheToiletGirl(int pal)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
PreCacheRange(5023, 5027, pal);
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCacheWashGirl(int pal)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
PreCacheRange(5032, 5035, pal);
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCacheCarGirl(int pal)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
PreCacheRange(4594,4597, pal);
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCacheMechanicGirl(int pal)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
PreCacheRange(4590,4593, pal);
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCacheSailorGirl(int pal)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
PreCacheRange(4600,4602, pal);
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCachePruneGirl(int pal)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
PreCacheRange(4604,4604, pal);
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCacheTrash(int pal)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
PreCacheRange(2540, 2546, pal);
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCacheBunny(int pal)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
PreCacheRange(4550, 4584, pal);
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCacheSkel(int pal)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
PreCacheRange(1320, 1396, pal);
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCacheHornet(int pal)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
PreCacheRange(800, 811, pal);
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCacheSkull(int pal)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
PreCacheRange(820, 854, pal);
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCacheBetty(int pal)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
PreCacheRange(817, 819, pal);
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-11 08:20:52 +00:00
|
|
|
void PreCachePachinko(int pal)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
PreCacheRange(618,623, pal);
|
|
|
|
PreCacheRange(618,623, pal);
|
|
|
|
PreCacheRange(4768,4790, pal);
|
|
|
|
PreCacheRange(4792,4814, pal);
|
|
|
|
PreCacheRange(4816,4838, pal);
|
|
|
|
PreCacheRange(4840,4863, pal);
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
2021-12-11 02:49:58 +00:00
|
|
|
void PreCacheActor(void)
|
2015-05-19 21:54:34 +00:00
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
int pic;
|
|
|
|
|
2021-10-31 20:00:21 +00:00
|
|
|
SWSpriteIterator it;
|
|
|
|
while (auto actor = it.Next())
|
2021-04-11 08:20:52 +00:00
|
|
|
{
|
2021-12-24 19:55:10 +00:00
|
|
|
int pal = actor->spr.pal;
|
|
|
|
if (actor->spr.statnum >= MAXSTATUS)
|
2021-04-11 08:20:52 +00:00
|
|
|
continue;
|
|
|
|
|
2021-12-24 19:55:10 +00:00
|
|
|
if (actor->hasU())
|
|
|
|
pic = actor->user.ID;
|
2021-04-11 08:20:52 +00:00
|
|
|
else
|
2021-12-24 19:55:10 +00:00
|
|
|
pic = actor->spr.picnum;
|
2021-04-11 08:20:52 +00:00
|
|
|
|
|
|
|
switch (pic)
|
|
|
|
{
|
|
|
|
case COOLIE_RUN_R0:
|
2021-12-24 19:55:10 +00:00
|
|
|
PreCacheCoolie(pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case NINJA_RUN_R0:
|
|
|
|
case NINJA_CRAWL_R0:
|
2021-12-24 19:55:10 +00:00
|
|
|
PreCacheNinja(pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case GORO_RUN_R0:
|
2021-12-24 19:55:10 +00:00
|
|
|
PreCacheGuardian(pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case 1441:
|
|
|
|
case COOLG_RUN_R0:
|
2021-12-24 19:55:10 +00:00
|
|
|
PreCacheGhost(pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case EEL_RUN_R0:
|
2021-12-24 19:55:10 +00:00
|
|
|
PreCacheEel(pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case SUMO_RUN_R0:
|
2021-12-24 19:55:10 +00:00
|
|
|
PreCacheZilla(pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case ZILLA_RUN_R0:
|
2021-12-24 19:55:10 +00:00
|
|
|
PreCacheSumo(pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case TOILETGIRL_R0:
|
2021-12-24 19:55:10 +00:00
|
|
|
PreCacheToiletGirl(pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case WASHGIRL_R0:
|
2021-12-24 19:55:10 +00:00
|
|
|
PreCacheWashGirl(pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case CARGIRL_R0:
|
2021-12-24 19:55:10 +00:00
|
|
|
PreCacheCarGirl(pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case MECHANICGIRL_R0:
|
2021-12-24 19:55:10 +00:00
|
|
|
PreCacheMechanicGirl(pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case SAILORGIRL_R0:
|
2021-12-24 19:55:10 +00:00
|
|
|
PreCacheSailorGirl(pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case PRUNEGIRL_R0:
|
2021-12-24 19:55:10 +00:00
|
|
|
PreCachePruneGirl(pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case TRASHCAN:
|
2021-12-24 19:55:10 +00:00
|
|
|
PreCacheTrash(pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case BUNNY_RUN_R0:
|
2021-12-24 19:55:10 +00:00
|
|
|
PreCacheBunny(pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case RIPPER_RUN_R0:
|
2021-12-24 19:55:10 +00:00
|
|
|
PreCacheRipper(pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case RIPPER2_RUN_R0:
|
2021-12-24 19:55:10 +00:00
|
|
|
PreCacheRipper2(pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case SERP_RUN_R0:
|
2021-12-24 19:55:10 +00:00
|
|
|
PreCacheSerpent(pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case LAVA_RUN_R0:
|
|
|
|
break;
|
|
|
|
|
|
|
|
case SKEL_RUN_R0:
|
2021-12-24 19:55:10 +00:00
|
|
|
PreCacheSkel(pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case HORNET_RUN_R0:
|
2021-12-24 19:55:10 +00:00
|
|
|
PreCacheHornet(pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case SKULL_R0:
|
2021-12-24 19:55:10 +00:00
|
|
|
PreCacheSkull(pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case BETTY_R0:
|
2021-12-24 19:55:10 +00:00
|
|
|
PreCacheBetty(pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case GIRLNINJA_RUN_R0:
|
2021-12-24 19:55:10 +00:00
|
|
|
PreCacheNinjaGirl(pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case 623: // Pachinko win light
|
|
|
|
case PACHINKO1:
|
|
|
|
case PACHINKO2:
|
|
|
|
case PACHINKO3:
|
|
|
|
case PACHINKO4:
|
2021-12-24 19:55:10 +00:00
|
|
|
PreCachePachinko(pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
default:
|
2021-12-24 19:55:10 +00:00
|
|
|
markTileForPrecache(pic, pal);
|
2021-04-11 08:20:52 +00:00
|
|
|
}
|
|
|
|
}
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void DoTheCache(void)
|
|
|
|
{
|
2021-04-11 08:20:52 +00:00
|
|
|
if (r_precache)
|
|
|
|
{
|
|
|
|
SetupPreCache();
|
|
|
|
PreCacheActor();
|
|
|
|
PreCacheOverride();
|
|
|
|
precacheMarkedTiles();
|
|
|
|
}
|
2015-05-19 21:54:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-10-09 16:09:05 +00:00
|
|
|
END_SW_NS
|