mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 12:48:16 +00:00
DRAGONS: Avoid global constuctors
This commit is contained in:
parent
131e54b3bb
commit
c4b42a2800
@ -33,11 +33,13 @@
|
||||
namespace Dragons {
|
||||
|
||||
|
||||
static const Common::Point positionTable[4] = {
|
||||
Common::Point(2, 0),
|
||||
Common::Point(0xce, 0),
|
||||
Common::Point(2, 0x9e),
|
||||
Common::Point(0xce, 0x9e)
|
||||
static const struct {
|
||||
int x, y;
|
||||
} positionTable[4] = {
|
||||
{ 2, 0 },
|
||||
{ 206, 0 },
|
||||
{ 2, 158 },
|
||||
{ 206, 158 }
|
||||
};
|
||||
|
||||
static const int16 bagBounceTable[4] = {
|
||||
@ -118,7 +120,7 @@ void Inventory::updateVisibility() {
|
||||
}
|
||||
|
||||
Common::Point Inventory::getPosition() {
|
||||
return positionTable[_screenPositionIndex];
|
||||
return Common::Point(positionTable[_screenPositionIndex].x, positionTable[_screenPositionIndex].y);
|
||||
}
|
||||
|
||||
void Inventory::setActorFlag400() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user