changeset 283:9186923e9843

Added creators/coders stuff.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 18 Jun 2007 00:53:02 +0000
parents a32dbd30d43e
children cf0593c6aa3f
files mkloc.c
diffstat 1 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mkloc.c	Mon Jun 18 00:45:17 2007 +0000
+++ b/mkloc.c	Mon Jun 18 00:53:02 2007 +0000
@@ -52,7 +52,7 @@
 typedef struct {
 	int x, y, ox, oy;
 	int dir, flags;
-	char *desc, *url, *freeform;
+	char *desc, *coders, *url, *freeform;
 } locinfo_t;
 
 
@@ -216,7 +216,7 @@
 
 
 BOOL addLocation(locations_t *l, int x, int y, int dir,
-	char *desc, int flags, char *url, char *freeform)
+	char *desc, int flags, char *coders, char *url, char *freeform)
 {
 	locinfo_t *tmp;
 	
@@ -229,6 +229,7 @@
 	tmp->dir = dir;
 	tmp->flags = flags;
 	tmp->desc = th_strdup(desc);
+	tmp->coders = th_strdup(coders);
 	tmp->url = th_strdup(url);
 	tmp->freeform = th_strdup(freeform);
 
@@ -468,7 +469,7 @@
 			}
 			
 			/* Add new location to our list */
-			addLocation(l, tx, ty, td, &(inLine[f.linePos]), tf, NULL, NULL);
+			addLocation(l, tx, ty, td, &(inLine[f.linePos]), tf, NULL, NULL, NULL);
 			
 		} else if (inLine[f.linePos] != '#' && inLine[f.linePos] != 0) {
 			THERR("Invalid line #%d in '%s'\n",
@@ -696,6 +697,11 @@
 		
 		fprintf(outFile, "\t;%s;", tmp->desc);
 		
+		if (tmp->coders)
+			fprintf(outFile, "%s", tmp->coders);
+		
+		fprintf(outFile, ";");
+		
 		if (tmp->url)
 			fprintf(outFile, "%s", tmp->url);
 		
@@ -875,7 +881,7 @@
 						srcFile, numNewLoc);
 				}
 				
-				addLocation(worldLoc, x, y, LOCD_NONE, tmps, tmpf, NULL, NULL);
+				addLocation(worldLoc, x, y, LOCD_NONE, tmps, tmpf, NULL, NULL, NULL);
 			}
 		} else {
 			/* Check for misplaced locations */