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 58334f2e53..21e8ceddeb 100644
--- a/engines/cge/game.cpp
+++ b/engines/cge/game.cpp
@@ -35,7 +35,7 @@ uint8 *Glass(DAC *pal, uint8 r, uint8 g, uint8 b) {
uint8 *x = new uint8[256];
if (x) {
uint16 i;
- for (i = 0; i < 256; i ++) {
+ for (i = 0; i < 256; i++) {
x[i] = Closest(pal, MkDAC(((uint16)(pal[i].R) * r) / 255,
((uint16)(pal[i].G) * g) / 255,
((uint16)(pal[i].B) * b) / 255));
@@ -50,7 +50,7 @@ uint8 *Mark(DAC *pal) {
uint8 *x = new uint8[256];
if (x) {
uint16 i;
- for (i = 0; i < 256; i ++) {
+ for (i = 0; i < 256; i++) {
x[i] = Closest(pal, MkDAC(f(pal[i].R),
f(pal[i].G),
f(pal[i].B)));
@@ -67,8 +67,8 @@ int FLY::L = 20,
FLY::B = 100;
-FLY::FLY(BITMAP **shpl)
- : SPRITE(shpl), Tx(0), Ty(0) {
+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));
}