]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/graphics.cpp
Added .gitignore to ignore certain files + fixed access rights on Makefile* as
[quix0rs-blobwars.git] / src / graphics.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 9e56544..7b8da92
@@ -1,5 +1,6 @@
 /*
-Copyright (C) 2004 Parallel Realities
+Copyright (C) 2004-2011 Parallel Realities
+Copyright (C) 2011-2015 Perpendicular Dimensions
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
@@ -24,8 +25,6 @@ void showAllSprites()
 {
        loadResources();
 
-       Sprite *sprite = graphics.getSpriteHead();
-
        int x, y, h;
 
        unsigned int frameLimit = SDL_GetTicks() + 16;
@@ -41,7 +40,7 @@ void showAllSprites()
 
                SDL_FillRect(graphics.screen, NULL, graphics.black);
 
-               sprite = graphics.getSpriteHead();
+               Sprite *sprite = graphics.getSpriteHead();
 
                while (sprite->next != NULL)
                {