Skip to content

Commit

Permalink
clean up unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Sec42 committed Jun 1, 2019
1 parent 7772ef3 commit a0cd091
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions play.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ int play_level(void){
Uint32 t_start,t_end,t_gone,t_now;
Sint32 t_left;
Uint32 ticks;
Uint32 q;

graphic* g=play->g;
field* lvl=play->f;
Expand Down Expand Up @@ -242,7 +241,6 @@ int play_level(void){
t_left=t_end-t_now;
// printf("start: %5d, end: %5d, left: %5d, ticks: %5d, frame: %5d, z: %4d\n",t_start, t_end, t_left, ticks, frames, z);

q=0;
if(t_left>0){
ticks-=t_left;
DELAY(t_left,t_end);
Expand Down
3 changes: 1 addition & 2 deletions title.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#define MENU_ENTRIES 5 /* XXXXXXXXXXXXXXXXXXXXXXXX!!!! */

SDL_Surface * create_title(menuentry * entries){
SDL_Surface *title,*black,*s,*bkg;
SDL_Surface *title,*s,*bkg;
int x;
int xk,yk;

Expand All @@ -20,7 +20,6 @@ SDL_Surface * create_title(menuentry * entries){

/* sleep(1); */ /* I'd like to have a cool intro here ;-) */

black=NULL;
/* To make it more readable, perhaps?
black=SDL_CreateRGBSurface(SDL_HWSURFACE, s->w, s->h,
s->format->BitsPerPixel, s->format->Rmask, s->format->Gmask,
Expand Down

0 comments on commit a0cd091

Please sign in to comment.