Bug in genolc.c

Login to reply  Page: « < 1 of 1 > »
18 Feb 2010 - 23:252361
Bug in genolc.c
In the function export_save_rooms()

What it's doing is writting QQ as the zone number, and then writing the zone number right after.

Fix:

      /* Save the numeric and string section of the file. */
      fprintf(room_file, 	"#QQ%02d\n"
			"%s%c\n"
			"%s%c\n"
-               "QQ %d %d %d %d %d %d\n",
+               "QQ %d %d %d %d %d\n",
		room->number%100,
		room->name ? room->name : "Untitled", STRING_TERMINATOR,
		buf, STRING_TERMINATOR,
-	        zone_table[room->zone].number, room->room_flags[0], room->room_flags[1],
+	        room->room_flags[0], room->room_flags[1],
                room->room_flags[2], room->room_flags[3], room->sector_type
      );


__________________
The Augmented Dimension 2.0
mud.themudhost.net port 5000

The Hidden Grotto
(Currently being patched up from Circle 3.0 to tba3.62)
Old version: a-d.codewarp.org 8229
Progress: http://a-d.codewarp.org/~schlittk/grotto_changelog.txt

Last edited by Kyle (19 Feb 2010 - 02:12)
19 Feb 2010 - 00:512362
Great catch, thanks. Removed the associated %d too.


__________________
Rumble
The Builder Academy
tbamud.com 9091
19 Feb 2010 - 02:042363
Right.. Whoops (edited OP for anyone else that comes across this)


__________________
The Augmented Dimension 2.0
mud.themudhost.net port 5000

The Hidden Grotto
(Currently being patched up from Circle 3.0 to tba3.62)
Old version: a-d.codewarp.org 8229
Progress: http://a-d.codewarp.org/~schlittk/grotto_changelog.txt

Last edited by Kyle (19 Feb 2010 - 02:10)
Login to reply  Page: « < 1 of 1 > »