aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config.h1
-rwxr-xr-xsrc/objects.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/config.h b/src/config.h
index 3c2b7b2..096ab30 100644
--- a/src/config.h
+++ b/src/config.h
@@ -3,6 +3,7 @@
#define obj_n 200
#define fontfile "/usr/share/fonts/TTF/BigBlueTerm437NerdFont-Regular.ttf"
+#define fishimg "../fish.png"
#define fontsize 80
#define fish_speed 0.003
#define scroll_speed 7
diff --git a/src/objects.c b/src/objects.c
index 707d908..514b33c 100755
--- a/src/objects.c
+++ b/src/objects.c
@@ -44,7 +44,7 @@ void constructor(STUFFS *stuff, TEXT *text, int i, char *text_buf){
fishRect.y=(stuff->height/2)-(fishRect.h/2);
text->obj.fishRect=fishRect;
SDL_Texture *textllure;
- textllure=IMG_LoadTexture(stuff->renderer,"../fish.png");
+ textllure=IMG_LoadTexture(stuff->renderer,fishimg);
if(!texture){
fprintf(stderr,"FAILED TO LOAD THE FUCKING FISH\n");
exit(EXIT_FAILURE);