test/testsprite2.c
changeset 1915 a228436a2404
parent 1914 051df511279c
child 1916 c773b0c0ac89
     1.1 --- a/test/testsprite2.c	Tue Jul 18 07:49:51 2006 +0000
     1.2 +++ b/test/testsprite2.c	Wed Jul 19 04:24:41 2006 +0000
     1.3 @@ -134,14 +134,14 @@
     1.4          int consumed;
     1.5  
     1.6          consumed = CommonArg(state, i);
     1.7 +        if (consumed == 0) {
     1.8 +            num_sprites = SDL_atoi(argv[i]);
     1.9 +            consumed = 1;
    1.10 +        }
    1.11          if (consumed < 0) {
    1.12              fprintf(stderr, "Usage: %s %s", argv[0], CommonUsage(state));
    1.13              quit(1);
    1.14          }
    1.15 -        if (consumed == 0) {
    1.16 -            num_sprites = SDL_atoi(argv[i]);
    1.17 -            consumed = 1;
    1.18 -        }
    1.19          i += consumed;
    1.20      }
    1.21      if (!CommonInit(state)) {
    1.22 @@ -184,7 +184,7 @@
    1.23          }
    1.24      }
    1.25  
    1.26 -    /* Loop, blitting sprites and waiting for a keystroke */
    1.27 +    /* Main render loop */
    1.28      frames = 0;
    1.29      then = SDL_GetTicks();
    1.30      done = 0;