Code tidy.

This commit is contained in:
Steve 2018-03-16 08:30:37 +00:00
parent 930ca048a9
commit 36c1d9cfe3
4 changed files with 7 additions and 4 deletions

View File

@ -22,20 +22,20 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#define CREDIT_LINE_LIMIT 500 #define CREDIT_LINE_LIMIT 500
extern void blitRect(SDL_Texture *texture, int x, int y, SDL_Rect *srcRect, int center);
extern void blitRectScaled(SDL_Texture *texture, int x, int y, int w, int h, SDL_Rect *srcRect, int center); extern void blitRectScaled(SDL_Texture *texture, int x, int y, int w, int h, SDL_Rect *srcRect, int center);
extern void drawRect(int x, int y, int w, int h, int r, int g, int b, int a); extern void drawRect(int x, int y, int w, int h, int r, int g, int b, int a);
extern void blitRect(SDL_Texture *texture, int x, int y, SDL_Rect *srcRect, int center);
extern void drawText(int x, int y, int size, int align, SDL_Color c, const char *format, ...); extern void drawText(int x, int y, int size, int align, SDL_Color c, const char *format, ...);
extern void endSectionTransition(void); extern void endSectionTransition(void);
extern Atlas *getImageFromAtlas(char *filename); extern Atlas *getImageFromAtlas(char *filename);
extern Texture *getTexture(const char *filename); extern Texture *getTexture(const char *filename);
extern int getWrappedTextHeight(const char *text, int size); extern int getWrappedTextHeight(const char *text, int size);
extern void limitTextWidth(int width); extern void limitTextWidth(int width);
extern void loadMusic(char *filename);
extern void playMusic(int loop);
extern char *readFile(const char *filename); extern char *readFile(const char *filename);
extern void startSectionTransition(void); extern void startSectionTransition(void);
extern void stopMusic(void); extern void stopMusic(void);
extern void loadMusic(char *filename);
extern void playMusic(int loop);
extern App app; extern App app;
extern Colors colors; extern Colors colors;

View File

@ -108,4 +108,6 @@ static void loadEndingText(void)
line = strtok(NULL, "\n"); line = strtok(NULL, "\n");
} }
free(text);
} }

View File

@ -26,3 +26,4 @@ extern void setGameplayMessage(int type, char *format, ...);
extern Game game; extern Game game;
extern World world; extern World world;

View File

@ -230,7 +230,7 @@ function recurseDir($dir)
{ {
recurseDir("$dir/$file"); recurseDir("$dir/$file");
} }
else if (strstr($file, ".h") !== FALSE && strstr($file, "main.h") === FALSE) else if (strstr($file, ".h") !== FALSE && strstr($file, "main.h") === FALSE && && strstr($file, "savepng") === FALSE)
{ {
cleanHeader("$dir/$file"); cleanHeader("$dir/$file");
} }