summaryrefslogtreecommitdiff
path: root/games/maelstrom-x11/patches/patch-ag
blob: 92387375313a68d29c4a4b297141c4d914811b78 (plain)
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
27
28
29
30
31
$NetBSD: patch-ag,v 1.2 2006/06/26 08:56:37 rillig Exp $

--- scores.cpp.orig	Mon Sep 14 12:06:20 1998
+++ scores.cpp	Mon Sep 14 12:08:28 1998
@@ -11,7 +11,7 @@
 #include "Maelstrom_Globals.h"
 #include "dialog.h"
 
-#define MAELSTROM_SCORES	"Maelstrom-Scores"
+#define MAELSTROM_SCORES	VARBASE"/games/Maelstrom-Scores"
 #define NUM_SCORES		10		// Do not change this!
 
 /* Everyone can write to scores file if defined to 0 */
@@ -49,7 +49,7 @@
 			gNetScores = 0;
 		}
 	}
-	scoresfile = file2libpath(MAELSTROM_SCORES);
+	scoresfile = MAELSTROM_SCORES;
 	memset(&hScores, 0, sizeof(hScores));
 	if ( (scores_fp=fopen(scoresfile, "r")) == NULL )
 		return;
@@ -72,7 +72,7 @@
 	if ( gNetScores )
 		return;
 
-	scoresfile = file2libpath(MAELSTROM_SCORES);
+	scoresfile = MAELSTROM_SCORES;
 #ifndef __WIN95__
 	omask=umask(SCORES_PERMMASK);
 #endif