aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/game.cpp
diff options
context:
space:
mode:
authorStrangerke2011-07-22 11:54:46 +0200
committerStrangerke2011-07-22 11:54:46 +0200
commit3ef0558aa933ce20242b3f842c235f792a6d2d32 (patch)
tree7ed887b15b303fdfe32cb7b09cbd980e810a0804 /engines/cge/game.cpp
parent5d41ab8b5fd778f206633157ffa87efc31f643cf (diff)
downloadscummvm-rg350-3ef0558aa933ce20242b3f842c235f792a6d2d32.tar.gz
scummvm-rg350-3ef0558aa933ce20242b3f842c235f792a6d2d32.tar.bz2
scummvm-rg350-3ef0558aa933ce20242b3f842c235f792a6d2d32.zip
CGE: Rename some more constants, some cleanup
Diffstat (limited to 'engines/cge/game.cpp')
-rw-r--r--engines/cge/game.cpp19
1 files changed, 0 insertions, 19 deletions
diff --git a/engines/cge/game.cpp b/engines/cge/game.cpp
index 18c4efbe00..4107580691 100644
--- a/engines/cge/game.cpp
+++ b/engines/cge/game.cpp
@@ -43,36 +43,17 @@ uint8 *glass(Dac *pal, uint8 r, uint8 g, uint8 b) {
return x;
}
-/* Useless?
-uint8 *Mark(DAC *pal) {
-#define f(c) (c ^ 63)
- uint8 *x = new uint8[256];
- if (x) {
- uint16 i;
- for (i = 0; i < 256; i++) {
- x[i] = closest(pal, mkDax(f(pal[i]._R),
- f(pal[i]._G),
- f(pal[i]._B)));
- }
- }
- return x;
-#undef f
-}
-*/
-
int Fly::_l = 20,
Fly::_t = 40,
Fly::_r = 110,
Fly::_b = 100;
-
Fly::Fly(CGEEngine *vm, Bitmap **shpl)
: Sprite(vm, shpl), _tx(0), _ty(0), _vm(vm) {
step(new_random(2));
gotoxy(_l + new_random(_r - _l - _w), _t + new_random(_b - _t - _h));
}
-
void Fly::tick() {
step();
if (!_flags._kept) {