Pixel pixel_drawto = (mode == DL_LASER_ENABLED ? pen_ray : pen_bg);
Pixel pixel_buffer = (mode == DL_LASER_ENABLED ? WHITE_PIXEL : BLACK_PIXEL);
- DrawLines(drawto, points, num_points, pixel_drawto);
+ DrawLines(drawto_mm, points, num_points, pixel_drawto);
BEGIN_NO_HEADLESS
{
BEGIN_NO_HEADLESS
{
// initialize laser bitmap to current playfield (screen) size
- ReCreateBitmap(&laser_bitmap, drawto->width, drawto->height);
- ClearRectangle(laser_bitmap, 0, 0, drawto->width, drawto->height);
+ ReCreateBitmap(&laser_bitmap, drawto_mm->width, drawto_mm->height);
+ ClearRectangle(laser_bitmap, 0, 0, drawto_mm->width, drawto_mm->height);
}
END_NO_HEADLESS
DrawLevel_MM();
- BackToFront();
+ BackToFront_MM();
#ifdef DEBUG
if (setup.quick_doors)
DrawLaser(0, DL_LASER_ENABLED);
- BackToFront();
+ BackToFront_MM();
Delay_WithScreenUpdates(50);
}
{
game_mm.game_over = TRUE;
game_mm.game_over_cause = game_over_cause;
- game_mm.game_over_message = (game_over_cause == GAME_OVER_BOMB ?
- "Bomb killed Mc Duffin!" :
- game_over_cause == GAME_OVER_NO_ENERGY ?
- "Out of magic energy!" :
- game_over_cause == GAME_OVER_OVERLOADED ?
- "Magic spell hit Mc Duffin!" :
- NULL);
+ game_mm.game_over_message = (game_mm.has_mcduffin ?
+ (game_over_cause == GAME_OVER_BOMB ?
+ "Bomb killed Mc Duffin!" :
+ game_over_cause == GAME_OVER_NO_ENERGY ?
+ "Out of magic energy!" :
+ game_over_cause == GAME_OVER_OVERLOADED ?
+ "Magic spell hit Mc Duffin!" :
+ NULL) :
+ (game_over_cause == GAME_OVER_BOMB ?
+ "Bomb destroyed laser cannon!" :
+ game_over_cause == GAME_OVER_NO_ENERGY ?
+ "Out of laser energy!" :
+ game_over_cause == GAME_OVER_OVERLOADED ?
+ "Laser beam hit laser cannon!" :
+ NULL));
SetTileCursorActive(FALSE);
}
DrawWalls_MM(x, y, Store[x][y]);
// copy wall tile to spare bitmap for "melting" animation
- BlitBitmap(drawto, bitmap_db_field, cSX + x * TILEX, cSY + y * TILEY,
+ BlitBitmap(drawto_mm, bitmap_db_field, cSX + x * TILEX, cSY + y * TILEY,
TILEX, TILEY, x * TILEX, y * TILEY);
DrawElement_MM(x, y, EL_GRAY_BALL);
getGraphicSource(graphic, 0, &bitmap, &gx, &gy);
}
- BlitBitmap(bitmap, drawto, gx + dx, gy + dy, 6, 6,
+ BlitBitmap(bitmap, drawto_mm, gx + dx, gy + dy, 6, 6,
cSX + x * TILEX + dx, cSY + y * TILEY + dy);
laser.redraw = TRUE;
ScanLaser();
- ShowEnvelope_MM(nr);
+ ShowEnvelope(nr);
}
}
}
Bang_MM(laser.start_edge.x, laser.start_edge.y);
- GameOver_MM(GAME_OVER_DELAYED);
-
laser.overloaded = FALSE;
}
- else if (IS_MCDUFFIN(center_element))
+ else if (IS_MCDUFFIN(center_element) || IS_LASER(center_element))
{
GameOver_MM(GAME_OVER_BOMB);
}
UpdateAndDisplayGameControlValues();
- BackToFront();
+ BackToFront_MM();
}
Tile[ELX][ELY] = laser.dest_element = EL_FUEL_EMPTY;
}
DrawField_MM(nx, ny);
- BackToFront();
+ BackToFront_MM();
if (!laser.fuse_off)
{