summaryrefslogtreecommitdiff
path: root/games/golddig/files/patch-aa
blob: e644f518ca6dbbed9798a335e9bf1541fa4c350a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- shared.c.orig	Mon May  1 18:20:48 2000
+++ shared.c	Mon May  1 18:25:28 2000
@@ -58,7 +58,7 @@
 #include "bitmap/window.bits"
 #include "bitmap/anti.bits"
 
-char *sprintf();    /* UNIX brain damage */
+/* char *sprintf();    /* UNIX brain damage */
 
 /* All in and out movements except up */
 #define NOUPBITS   DLEAVE | LLEAVE | RLEAVE | HENTER | VENTER
@@ -316,8 +316,12 @@
 
   /* Manufaction the file name by starting with the world name and */
   /* appending the level number to it. */
-  strcpy(filename,LIB);
-  strcat(filename,"/");
+  if (strchr (worldname, '/')) 
+      *filename = 0;
+  else {
+      strcpy(filename,LIB);
+      strcat(filename,"/");
+  }
   strcat(filename,worldname);
   sprintf(filename + strlen(filename),"%03d",levelnum);
   /* Open level file for reading */