Made Flash.cpp more source-accurate

The returns make more sense than those empty brackets
This commit is contained in:
Clownacy 2019-02-21 19:51:40 +00:00
parent 5ba0454bc8
commit fb9b545e27

View file

@ -21,7 +21,7 @@ static unsigned long gFlashColor;
void InitFlash(void) void InitFlash(void)
{ {
gFlashColor = 0xFEFFFF; gFlashColor = GetCortBoxColor(RGB(0xFF, 0xFF, 0xFE));
} }
void SetFlash(int x, int y, int mode) void SetFlash(int x, int y, int mode)
@ -137,11 +137,8 @@ void ActFlash_Flash(void)
void ActFlash(int flx, int fly) void ActFlash(int flx, int fly)
{ {
if (flash.flag == FALSE) if (flash.flag == FALSE)
{ return;
// Do nothing
}
else
{
switch (flash.mode) switch (flash.mode)
{ {
case 1: case 1:
@ -151,20 +148,15 @@ void ActFlash(int flx, int fly)
ActFlash_Flash(); ActFlash_Flash();
break; break;
} }
}
} }
void PutFlash(void) void PutFlash(void)
{ {
if (flash.flag == FALSE) if (flash.flag == FALSE)
{ return;
// Do nothing
}
else
{
CortBox(&flash.rect1, gFlashColor); CortBox(&flash.rect1, gFlashColor);
CortBox(&flash.rect2, gFlashColor); CortBox(&flash.rect2, gFlashColor);
}
} }
void ResetFlash(void) void ResetFlash(void)