From 2bca049973790c7340766d5b2ab0740a19281803 Mon Sep 17 00:00:00 2001 From: Steve Date: Thu, 3 Dec 2015 16:53:29 +0000 Subject: [PATCH] Misc. clean up. --- common.mk | 4 ++-- src/draw/draw.c | 2 +- src/galaxy/galacticMap.h | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/common.mk b/common.mk index eeee9cf..0b2dc2d 100644 --- a/common.mk +++ b/common.mk @@ -69,10 +69,10 @@ dist: mkdir $(PROG)-$(VERSION) cp -r $(DIST_FILES) $(PROG)-$(VERSION) git log --oneline --decorate >$(PROG)-$(VERSION)/CHANGELOG.raw - tar czf $(PROG)-$(VERSION).$(REVISION)-src.tar.gz $(PROG)-$(VERSION) + tar czf $(PROG)-$(VERSION)-$(REVISION).src.tar.gz $(PROG)-$(VERSION) mkdir -p dist $(RM) -rf dist/* - mv $(PROG)-$(VERSION).$(REVISION)-src.tar.gz dist + mv $(PROG)-$(VERSION)-$(REVISION).src.tar.gz dist $(RM) -rf $(PROG)-$(VERSION) # cleaning everything that can be automatically recreated with "make". diff --git a/src/draw/draw.c b/src/draw/draw.c index 326d389..2b4462e 100644 --- a/src/draw/draw.c +++ b/src/draw/draw.c @@ -203,7 +203,7 @@ void saveScreenshot(void) char filename[MAX_NAME_LENGTH]; SDL_Surface *sshot; - sprintf(filename, "/tmp/tbftss/%d.bmp", ++i); + sprintf(filename, "dev/screenshots/tmp/%d.bmp", ++i); sshot = SDL_CreateRGBSurface(0, SCREEN_WIDTH, SCREEN_HEIGHT, 32, 0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000); SDL_RenderReadPixels(app.renderer, NULL, SDL_PIXELFORMAT_ARGB8888, sshot->pixels, sshot->pitch); diff --git a/src/galaxy/galacticMap.h b/src/galaxy/galacticMap.h index 6b37f44..51e2cd5 100644 --- a/src/galaxy/galacticMap.h +++ b/src/galaxy/galacticMap.h @@ -38,7 +38,6 @@ extern SDL_Texture *getTexture(char *filename); extern void startSectionTransition(void); extern void endSectionTransition(void); extern void saveGame(void); -extern char *getChallengeDescription(Challenge *c); extern void blit(SDL_Texture *t, int x, int y, int centered); extern int collision(int x1, int y1, int w1, int h1, int x2, int y2, int w2, int h2); extern void updateStarSystemDescriptions(void);