mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
XEEN: gcc compilation fixes
This commit is contained in:
parent
fd2d462296
commit
6dc1551d7d
@ -37,7 +37,7 @@ int Input::show(XeenEngine *vm, Window *window, Common::String &line,
|
||||
|
||||
int Input::getString(Common::String &line, uint maxLen, int maxWidth, bool isNumeric) {
|
||||
_vm->_noDirectionSense = true;
|
||||
Common::String msg = Common::String::format("\x3""l\t000\x4%03d\x0""c", maxWidth);
|
||||
Common::String msg = Common::String::format("\x3""l\t000\x4%03d\x3""c", maxWidth);
|
||||
_window->writeString(msg);
|
||||
_window->update();
|
||||
|
||||
|
@ -110,7 +110,7 @@ void OptionsMenu::showTitles1(SpriteResource &sprites) {
|
||||
while (!_vm->shouldQuit() && !events.isKeyMousePressed()) {
|
||||
events.updateGameCounter();
|
||||
|
||||
frameNum = ++frameNum % (_vm->getGameID() == GType_WorldOfXeen ? 5 : 10);
|
||||
frameNum = (frameNum + 1) % (_vm->getGameID() == GType_WorldOfXeen ? 5 : 10);
|
||||
screen.restoreBackground();
|
||||
sprites.draw(screen, frameNum);
|
||||
|
||||
@ -211,7 +211,7 @@ void WorldOptionsMenu::showContents(SpriteResource &title1, bool waitFlag) {
|
||||
events.updateGameCounter();
|
||||
|
||||
// Draw the background frame in a continous cycle
|
||||
_bgFrame = ++_bgFrame % 5;
|
||||
_bgFrame = (_bgFrame + 1) % 5;
|
||||
title1.draw(screen._windows[0], _bgFrame);
|
||||
|
||||
// Draw the basic frame for the optitons menu and title text
|
||||
|
@ -105,7 +105,7 @@ bool YesNo::execute(bool type, bool townFlag) {
|
||||
Screen &screen = *_vm->_screen;
|
||||
Town &town = *_vm->_town;
|
||||
SpriteResource confirmSprites;
|
||||
int numFrames;
|
||||
//int numFrames;
|
||||
bool result = false;
|
||||
|
||||
Mode oldMode = _vm->_mode;
|
||||
@ -130,10 +130,10 @@ bool YesNo::execute(bool type, bool townFlag) {
|
||||
|
||||
if (town.isActive()) {
|
||||
town.drawTownAnim(townFlag);
|
||||
numFrames = 3;
|
||||
//numFrames = 3;
|
||||
} else {
|
||||
intf.draw3d(true);
|
||||
numFrames = 1;
|
||||
//numFrames = 1;
|
||||
}
|
||||
|
||||
events.wait(3, true);
|
||||
|
@ -912,6 +912,8 @@ int Teleport::execute() {
|
||||
case DIR_WEST:
|
||||
pt.x -= numSquares;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
v = map.mazeLookup(pt, map._isOutdoors ? 0xF : 0xFFFF, 0);
|
||||
|
@ -513,6 +513,8 @@ void Interface::perform() {
|
||||
case DIR_WEST:
|
||||
--party._mazePosition.x;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
chargeStep();
|
||||
stepTime();
|
||||
@ -1230,6 +1232,8 @@ void Interface::bash(const Common::Point &pt, Direction direction) {
|
||||
case DIR_WEST:
|
||||
map.setWall(Common::Point(pt.x - 1, pt.y), DIR_EAST, 3);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -27,8 +27,6 @@
|
||||
|
||||
namespace Xeen {
|
||||
|
||||
static bool debugFlag = false;
|
||||
|
||||
OutdoorDrawList::OutdoorDrawList() : _sky1(_data[0]), _sky2(_data[1]),
|
||||
_groundSprite(_data[2]), _attackImgs1(&_data[124]), _attackImgs2(&_data[95]),
|
||||
_attackImgs3(&_data[76]), _attackImgs4(&_data[53]), _groundTiles(&_data[3]) {
|
||||
|
@ -304,6 +304,8 @@ void Scripts::openGrate(int wallVal, int action) {
|
||||
case DIR_WEST:
|
||||
pt.x--;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
map.setCellSurfaceFlags(pt, 0x80);
|
||||
@ -1084,7 +1086,7 @@ void Scripts::cmdSeatTextSml(Common::Array<byte> ¶ms) {
|
||||
Interface &intf = *_vm->_interface;
|
||||
|
||||
intf._screenText = Common::String::format("\x2\f08\x3""c\t116\v090%s\x3l\fd\x1",
|
||||
_message);
|
||||
_message.c_str());
|
||||
intf._upDoorText = true;
|
||||
intf.draw3d(true);
|
||||
|
||||
@ -1227,7 +1229,9 @@ void Scripts::cmdDisplayBottomTwoLines(Common::Array<byte> ¶ms) {
|
||||
Map &map = *_vm->_map;
|
||||
Window &w = _vm->_screen->_windows[12];
|
||||
|
||||
warning("TODO: cmdDisplayBottomTwoLines");
|
||||
Common::String msg = Common::String::format("\r\x03c\t000\v007%s\n\n%s",
|
||||
"",
|
||||
map._events._text[params[1]].c_str());
|
||||
w.close();
|
||||
w.open();
|
||||
|
Loading…
x
Reference in New Issue
Block a user