+static void FadeOutLaser(boolean overloaded)
+{
+ int i;
+
+ for (i = 15; i >= 0; i--)
+ {
+ if (overloaded)
+ pen_ray = GetPixelFromRGB(window, 0x11 * i, 0x00, 0x00);
+ else
+ pen_ray = GetPixelFromRGB(window,
+ native_mm_level.laser_red * 0x11 * i,
+ native_mm_level.laser_green * 0x11 * i,
+ native_mm_level.laser_blue * 0x11 * i);
+
+ DrawLaser(0, DL_LASER_ENABLED);
+
+ BackToFront();
+ Delay_WithScreenUpdates(50);
+ }
+
+ DrawLaser(0, DL_LASER_DISABLED);
+
+ if (!overloaded)
+ StopSound_MM(SND_MM_GAME_HEALTH_CHARGING);
+}
+