mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-10 21:03:31 +00:00
HDB: Fix warnings
This commit is contained in:
parent
812a8c7c9d
commit
24468bf630
@ -625,6 +625,9 @@ void Gfx::drawSky() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const int snowXVList[13] = {0, -1, -1, -2, -2, -1, 0, 0, 0, -1, -2, -1, 0};
|
||||||
|
|
||||||
|
|
||||||
void Gfx::drawSnow() {
|
void Gfx::drawSnow() {
|
||||||
int i;
|
int i;
|
||||||
if (_snowInfo.active == false)
|
if (_snowInfo.active == false)
|
||||||
@ -632,7 +635,7 @@ void Gfx::drawSnow() {
|
|||||||
|
|
||||||
for (i = 0; i < MAX_SNOW; i++) {
|
for (i = 0; i < MAX_SNOW; i++) {
|
||||||
_snowflake->drawMasked((int)_snowInfo.x[i], (int)_snowInfo.y[i]);
|
_snowflake->drawMasked((int)_snowInfo.x[i], (int)_snowInfo.y[i]);
|
||||||
_snowInfo.x[i] += _snowXVList[_snowInfo.xvindex[i]++];
|
_snowInfo.x[i] += snowXVList[_snowInfo.xvindex[i]++];
|
||||||
_snowInfo.y[i] += _snowInfo.yv[i];
|
_snowInfo.y[i] += _snowInfo.yv[i];
|
||||||
if (_snowInfo.xvindex[i] == MAX_SNOW_XV)
|
if (_snowInfo.xvindex[i] == MAX_SNOW_XV)
|
||||||
_snowInfo.xvindex[i] = 0;
|
_snowInfo.xvindex[i] = 0;
|
||||||
|
@ -195,8 +195,6 @@ private:
|
|||||||
int xvindex[MAX_SNOW];
|
int xvindex[MAX_SNOW];
|
||||||
} _snowInfo;
|
} _snowInfo;
|
||||||
|
|
||||||
int _snowXVList[13] = {0, -1, -1, -2, -2, -1, 0, 0, 0, -1, -2, -1, 0};
|
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
int x, y, speed;
|
int x, y, speed;
|
||||||
uint16 color;
|
uint16 color;
|
||||||
|
@ -153,6 +153,17 @@ void Menu::writeConfig() {
|
|||||||
ConfMan.set(CONFIG_CHEAT, "1");
|
ConfMan.set(CONFIG_CHEAT, "1");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const char nebulaNames[kNebulaCount][32] = {
|
||||||
|
BACKSCROLL_PLANET1,
|
||||||
|
BACKSCROLL_PLANET2,
|
||||||
|
BACKSCROLL_PLANET3,
|
||||||
|
BACKSCROLL_PLANET4,
|
||||||
|
BACKSCROLL_PLANET5,
|
||||||
|
BACKSCROLL_GALAXY1,
|
||||||
|
BACKSCROLL_GALAXY2
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
void Menu::startMenu() {
|
void Menu::startMenu() {
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
@ -1183,7 +1194,7 @@ void Menu::processInput(int x, int y) {
|
|||||||
|
|
||||||
int xit = getMenuKey();
|
int xit = getMenuKey();
|
||||||
|
|
||||||
if (y >= kMenuExitY && x < kMenuExitXLeft || xit) {
|
if ((y >= kMenuExitY && x < kMenuExitXLeft) || xit) {
|
||||||
_menuActive = true;
|
_menuActive = true;
|
||||||
_warpActive = false;
|
_warpActive = false;
|
||||||
g_hdb->_sound->playSound(SND_MENU_BACKOUT);
|
g_hdb->_sound->playSound(SND_MENU_BACKOUT);
|
||||||
|
@ -229,16 +229,6 @@ public:
|
|||||||
|
|
||||||
Star _fStars[kMaxStars];
|
Star _fStars[kMaxStars];
|
||||||
|
|
||||||
char nebulaNames[kNebulaCount][32] = {
|
|
||||||
BACKSCROLL_PLANET1,
|
|
||||||
BACKSCROLL_PLANET2,
|
|
||||||
BACKSCROLL_PLANET3,
|
|
||||||
BACKSCROLL_PLANET4,
|
|
||||||
BACKSCROLL_PLANET5,
|
|
||||||
BACKSCROLL_GALAXY1,
|
|
||||||
BACKSCROLL_GALAXY2
|
|
||||||
};
|
|
||||||
|
|
||||||
int _menuKey;
|
int _menuKey;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user