Minor Organya.cpp cleanup
This commit is contained in:
parent
9bd73d5ed8
commit
84db90c794
1 changed files with 4 additions and 5 deletions
|
@ -305,7 +305,6 @@ void ChangeDramVolume(int32_t volume, int8_t track)
|
||||||
|
|
||||||
void PlayDramObject(unsigned char key, int mode,char track)
|
void PlayDramObject(unsigned char key, int mode,char track)
|
||||||
{
|
{
|
||||||
|
|
||||||
switch(mode)
|
switch(mode)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
@ -341,7 +340,7 @@ void OrganyaPlayData()
|
||||||
//Play melody
|
//Play melody
|
||||||
for(int i = 0; i < MAXMELODY; i++)
|
for(int i = 0; i < MAXMELODY; i++)
|
||||||
{
|
{
|
||||||
if (play_np[i] != NULL &&play_p == play_np[i]->x)
|
if (play_np[i] != NULL && play_p == play_np[i]->x)
|
||||||
{
|
{
|
||||||
if(play_np[i]->y != KEYDUMMY)
|
if(play_np[i]->y != KEYDUMMY)
|
||||||
{
|
{
|
||||||
|
@ -555,7 +554,7 @@ void PlayOrganyaMusic()
|
||||||
|
|
||||||
bool ChangeOrganyaVolume(signed int volume)
|
bool ChangeOrganyaVolume(signed int volume)
|
||||||
{
|
{
|
||||||
if ( volume >= 0 && volume <= 100 )
|
if (volume >= 0 && volume <= 100)
|
||||||
{
|
{
|
||||||
gOrgVolume = volume;
|
gOrgVolume = volume;
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue