Made Flash.cpp more source-accurate
The returns make more sense than those empty brackets
This commit is contained in:
parent
5ba0454bc8
commit
fb9b545e27
1 changed files with 14 additions and 22 deletions
|
@ -21,7 +21,7 @@ static unsigned long gFlashColor;
|
|||
|
||||
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_Flash(void)
|
|||
void ActFlash(int flx, int fly)
|
||||
{
|
||||
if (flash.flag == FALSE)
|
||||
return;
|
||||
|
||||
switch (flash.mode)
|
||||
{
|
||||
// Do nothing
|
||||
}
|
||||
else
|
||||
{
|
||||
switch (flash.mode)
|
||||
{
|
||||
case 1:
|
||||
ActFlash_Explosion(flx, fly);
|
||||
break;
|
||||
case 2:
|
||||
ActFlash_Flash();
|
||||
break;
|
||||
}
|
||||
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)
|
||||
|
|
Loading…
Add table
Reference in a new issue