Skip to content

Commit 6f16fc9

Browse files
committed
Removing old unused code.
1 parent 8105818 commit 6f16fc9

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

src/ball.c

-1
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,6 @@ sans collision.
699699
}
700700
releaseSprite(ball[i].spriteno);
701701
sound_play(kSound_BallPop, 0);
702-
// GpPcmPlay((unsigned short*)ball_explode,sizeof(ball_explode), 0);
703702
}
704703
}
705704
}

src/player.c

-20
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,6 @@ updatePlayer(void)
144144
}
145145
}
146146

147-
/*sprintf(debug,"%d",whereIsPlayer);*/
148-
149-
/*GpRectFill(NULL, &gpDraw[nflip], player.posx+2,player.posy+30,28,2,232);
150-
GpRectFill(NULL, &gpDraw[nflip], player.posx+5,player.posy+15,22,10,232);
151-
GpRectFill(NULL, &gpDraw[nflip], player.posx+5,player.posy,15,25,232);*/
152-
153147
/* Si on est pas sur une échelle ou est on ? */
154148
if (whereIsPlayer == 999)
155149
{
@@ -289,11 +283,6 @@ updatePlayer(void)
289283
}
290284
}
291285

292-
if (keyAction4 == 1)
293-
{
294-
// keydata = GpKeyGet();
295-
}
296-
297286
if (((keyAction1 == 1) || (keyAction2 == 1)) && (player.shoot_timer == 0))
298287

299288
{
@@ -327,14 +316,6 @@ updatePlayer(void)
327316
}
328317
}
329318

330-
/* Pause TODO !! */
331-
// if (GpKeyGet() & GPC_VK_START)
332-
// {
333-
// while (GpKeyGet() & GPC_VK_START) {}
334-
// while (!(GpKeyGet() & GPC_VK_START)) {}
335-
// while (GpKeyGet() & GPC_VK_START) {}
336-
// }
337-
338319
/* Pour empecher le tir automatique ! */
339320
if ((keyAction1 == 0) && (keyAction2 == 0))
340321
player.shoot_timer = 0;
@@ -372,7 +353,6 @@ updatePlayer(void)
372353
else if (gbl_evt != EVT_LOOSE_LIFE)
373354
{
374355
gbl_evt = EVT_LOOSE_LIFE;
375-
// GpPcmStop();
376356
sound_etat = 0;
377357
player.nblive -= 1;
378358
}

0 commit comments

Comments
 (0)