Remove static ctor

This commit is contained in:
otya128 committed 2016-12-04 15:09:22 +09:00
1 parent 4170d91ce8
commit 17a12f6336
3 files changed
+8 -6

No files matched your search

+3 -2
View File
@@ -347,6 +347,7 @@ class Sprite
}
this(PetitComputer petitcom)
{
initSpriteAnimationTable();
sprites = new SpriteData[512];
zsortedSprites = new SpriteData*[512];
for(int i = 0; i < sprites.length; i++)
@@ -875,8 +876,8 @@ class Sprite
spanim(id, tgete | (relative ? SpriteAnimTarget.relative : cast(SpriteAnimTarget)0), data);
}
static SpriteAnimTarget[wstring] spriteAnimTarget;
static this()
SpriteAnimTarget[wstring] spriteAnimTarget;
void initSpriteAnimationTable()
{
spriteAnimTarget = [
"XY": SpriteAnimTarget.XY,