JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
removed ship fade in code (unused)
authorJoshua Grams <josh@qualdan.com>
Sun, 26 Mar 2006 11:17:57 +0000 (11:17 +0000)
committerJoshua Grams <josh@qualdan.com>
Sun, 26 Mar 2006 11:17:57 +0000 (11:17 +0000)
main.c

diff --git a/main.c b/main.c
index 4ffcb25..a2d7bee 100644 (file)
--- a/main.c
+++ b/main.c
@@ -563,8 +563,6 @@ static inline void
 kill_ship(Sprite *ship)
 {
        ship->flags = MOVE;
-       // ship->flags = MOVE|DRAW;  // FADE SHIP
-       // SDL_SetAlpha(ship->image, SDL_SRCALPHA, 0); // FADE SHIP
        bang = true;
 }
 
@@ -632,13 +630,7 @@ gameloop() {
                                }
                        } else {
                                if(state == DEAD_PAUSE) {
-                                       // float alpha;  // FADE SHIP
-
                                        if(bangx < 60) bangx = 60;
-
-                                       // FADE SHIP
-                                       // alpha = 255.0 * (DEAD_PAUSE_LENGTH - state_timeout) / DEAD_PAUSE_LENGTH;
-                                       // SDL_SetAlpha(ship.image, SDL_SRCALPHA, (uint8_t)alpha);
                                }
                        }
 
@@ -727,7 +719,6 @@ gameloop() {
                                        ship.dx = screendx; ship.dy = screendy;
                                        ship.lives = 4;
                                        ship.flags = MOVE|DRAW|COLLIDE;
-                                       // SDL_SetAlpha(ship.image, SDL_SRCALPHA, SDL_ALPHA_OPAQUE);  // FADE SHIP
                                        add_sprite(SPRITE(&ship));
 
                                        score = 0;