mirror of
https://github.com/DarkStore-3DS/Universal-Core.git
synced 2026-07-03 00:39:23 +00:00
Fix sprite initing (probably)
And run clang-format
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ private:
|
||||
bool _visibility;
|
||||
u16 *_gfx;
|
||||
|
||||
static bool _assigned[2][256];
|
||||
static bool _assigned[2][127];
|
||||
|
||||
public:
|
||||
/**
|
||||
|
||||
+2
-2
@@ -28,7 +28,7 @@
|
||||
|
||||
#include "tonccpy.h"
|
||||
|
||||
bool Sprite::_assigned[2][256];
|
||||
bool Sprite::_assigned[2][127];
|
||||
|
||||
Sprite::Sprite(bool top, SpriteSize size, SpriteColorFormat format, int x, int y, int priority, int id,
|
||||
int paletteAlpha, int rotationIndex, bool doubleSize, bool visible, bool vFlip, bool hFlip, bool mosaic)
|
||||
@@ -39,7 +39,7 @@ Sprite::Sprite(bool top, SpriteSize size, SpriteColorFormat format, int x, int y
|
||||
for(uint i = 0; i < sizeof(_assigned[top]) / sizeof(_assigned[top][0]); i++) {
|
||||
if(!_assigned[top][i]) {
|
||||
_assigned[top][i] = true;
|
||||
id = i;
|
||||
_id = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user