Fix SPCLR
This commit is contained in:
1 parent
8af9c64396
commit
735b632f52
1 file changed
+13
-2
+13
-2
@@ -973,9 +973,20 @@ class Sprite
|
||||
}
|
||||
void spclr()
|
||||
{
|
||||
synchronized (this) for(int i = 0; i < sprites.length; i++)
|
||||
auto id = spid(0);
|
||||
if(spmax <= id)
|
||||
{
|
||||
sprites[i].clear;
|
||||
synchronized (this) for(int i = id; i < sprites.length; i++)
|
||||
{
|
||||
sprites[i].clear;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
synchronized (this) for(int i = 0; i < spmax; i++)
|
||||
{
|
||||
sprites[i].clear;
|
||||
}
|
||||
}
|
||||
}
|
||||
void allclear()
|
||||
|
||||
Reference in new issue
Block a user