- preparations for unlimited tsprites.

Right now it is a no-op because Polymost cannot deal with this properly.
This commit is contained in:
Christoph Oelckers 2022-01-10 00:38:26 +01:00
parent 2377b17106
commit e892de21ec
7 changed files with 11 additions and 0 deletions

View file

@ -412,6 +412,8 @@ void dragpoint(walltype* startwall, int newx, int newy)
tspritetype* renderAddTsprite(tspritetype* tsprite, int& spritesortcnt, DCoreActor* actor)
{
validateTSpriteSize(tsprite, spritesortcnt);
if (spritesortcnt >= MAXSPRITESONSCREEN) return nullptr;
auto tspr = &tsprite[spritesortcnt++];