ref: fb9b545e2706ca8e4ec791b6ed50f9db53e5a149
parent: 5ba0454bc800d519eb966347c73852dcb0278272
author: Clownacy <[email protected]>
date: Thu Feb 21 14:51:40 EST 2019
Made Flash.cpp more source-accurate The returns make more sense than those empty brackets
--- a/src/Flash.cpp
+++ b/src/Flash.cpp
@@ -21,7 +21,7 @@
void InitFlash(void)
{
- gFlashColor = 0xFEFFFF;
+ gFlashColor = GetCortBoxColor(RGB(0xFF, 0xFF, 0xFE));
}
void SetFlash(int x, int y, int mode)
@@ -137,34 +137,26 @@
void ActFlash(int flx, int fly)
{
if (flash.flag == FALSE)
+ return;
+
+ switch (flash.mode)
{
- // Do nothing
+ case 1:
+ ActFlash_Explosion(flx, fly);
+ break;
+ case 2:
+ ActFlash_Flash();
+ break;
}
- else
- {
- switch (flash.mode)
- {
- case 1:
- ActFlash_Explosion(flx, fly);
- break;
- case 2:
- ActFlash_Flash();
- break;
- }
- }
}
void PutFlash(void)
{
if (flash.flag == FALSE)
- {
- // Do nothing
- }
- else
- {
- CortBox(&flash.rect1, gFlashColor);
- CortBox(&flash.rect2, gFlashColor);
- }
+ return;
+
+ CortBox(&flash.rect1, gFlashColor);
+ CortBox(&flash.rect2, gFlashColor);
}
void ResetFlash(void)