aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cge/game.cpp')
-rw-r--r--engines/cge/game.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/cge/game.cpp b/engines/cge/game.cpp
index 2a6bc85015..be93709f17 100644
--- a/engines/cge/game.cpp
+++ b/engines/cge/game.cpp
@@ -69,13 +69,13 @@ int Fly::_l = 20,
Fly::Fly(CGEEngine *vm, Bitmap **shpl)
: Sprite(vm, shpl), _tx(0), _ty(0), _vm(vm) {
- Step(new_random(2));
- Goto(_l + new_random(_r - _l - _w), _t + new_random(_b - _t - _h));
+ step(new_random(2));
+ gotoxy(_l + new_random(_r - _l - _w), _t + new_random(_b - _t - _h));
}
void Fly::tick() {
- Step();
+ step();
if (!_flags._kept) {
if (new_random(10) < 1) {
_tx = new_random(3) - 1;
@@ -85,7 +85,7 @@ void Fly::tick() {
_tx = -_tx;
if (_y + _ty < _t || _y + _ty + _h > _b)
_ty = -_ty;
- Goto(_x + _tx, _y + _ty);
+ gotoxy(_x + _tx, _y + _ty);
}
}