1
0

Implement SPSET(3)

This commit is contained in:
otya128
2016-12-31 20:09:38 +09:00
parent 4866a1d32d
commit 4b41376cb5
2 changed files with 15 additions and 0 deletions

View File

@@ -823,6 +823,10 @@ class Sprite
synchronized (this)
sprites[id] = SpriteData(id, spdef, 0/*要調査*/);
}
int allocSprite()
{
return allocSprite(0, petitcom.displaynum ? cast(int)sprites.length - spmax - 1 : spmax - 1);
}
int allocSprite(int lower, int upper)
{
for (int i = lower; i <= upper; i++)