014-015.diff.bz2

patches · 2.1 KB · 2010-03-30

Download   « Back to the patches list

diff -buraP 014/src/Makefile 015/src/Makefile
--- 014/src/Makefile	2008-10-11 10:10:30.000000000 -0400
+++ 015/src/Makefile	2008-10-12 02:19:42.000000000 -0400
@@ -1,5 +1,5 @@
 #
-# RAM $Id: Makefile 13 2008-10-11 14:10:30Z quixadhal $
+# RAM $Id: Makefile 15 2008-10-12 06:19:42Z quixadhal $
 #
 
 CC      	= g++
@@ -71,12 +71,12 @@
 act_enter.o: act_enter.c merc.h db.h interp.h act.h
 effects.o: effects.c merc.h recycle.h db.h magic.h
 act_obj.o: act_obj.c merc.h db.h interp.h magic.h act.h
-scan.o: scan.c merc.h db.h interp.h
+scan.o: scan.c merc.h db.h act.h interp.h
 note.o: note.c merc.h db.h interp.h recycle.h tables.h
 update.o: update.c merc.h db.h act.h interp.h magic.h music.h
 alias.o: alias.c merc.h db.h interp.h
 music.o: music.c merc.h recycle.h db.h interp.h music.h
-db.o: db.c merc.h recycle.h lookup.h act.h db.h interp.h magic.h \
+db.o: db.c merc.h recycle.h tables.h lookup.h act.h db.h interp.h magic.h \
   special.h music.h
 recycle.o: recycle.c merc.h db.h recycle.h
 magic.o: magic.c merc.h recycle.h db.h act.h interp.h magic.h
@@ -84,7 +84,7 @@
 tables.o: tables.c merc.h tables.h
 lookup.o: lookup.c merc.h db.h tables.h
 act_move.o: act_move.c merc.h db.h interp.h act.h
-save.o: save.c merc.h recycle.h lookup.h tables.h db.h magic.h
+save.o: save.c merc.h recycle.h tables.h lookup.h db.h magic.h
 interp.o: interp.c merc.h db.h act.h interp.h
 special.o: special.c merc.h db.h act.h interp.h magic.h special.h
 skills.o: skills.c merc.h recycle.h db.h interp.h magic.h
@@ -92,7 +92,7 @@
 comm.o: comm.c merc.h recycle.h tables.h db.h act.h interp.h
 healer.o: healer.c merc.h db.h interp.h magic.h
 const.o: const.c merc.h magic.h interp.h
-flags.o: flags.c merc.h db.h interp.h lookup.h tables.h
+flags.o: flags.c merc.h db.h interp.h tables.h lookup.h
 act_wiz.o: act_wiz.c merc.h recycle.h tables.h lookup.h db.h interp.h \
   magic.h special.h act.h
 act_info.o: act_info.c merc.h recycle.h tables.h lookup.h db.h interp.h \
diff -buraP 014/src/db.c 015/src/db.c
--- 014/src/db.c	2008-10-11 10:10:30.000000000 -0400
+++ 015/src/db.c	2008-10-12 02:19:42.000000000 -0400
@@ -1,5 +1,5 @@
 /*
- * RAM $Id: db.c 13 2008-10-11 14:10:30Z quixadhal $
+ * RAM $Id: db.c 15 2008-10-12 06:19:42Z quixadhal $
  */
 
 /***************************************************************************
@@ -41,6 +41,7 @@
 
 #include "merc.h"
 #include "recycle.h"
+#include "tables.h"
 #include "lookup.h"
 #include "act.h"
 #include "db.h"
diff -buraP 014/src/flags.c 015/src/flags.c
--- 014/src/flags.c	2008-10-11 10:10:30.000000000 -0400
+++ 015/src/flags.c	2008-10-12 02:19:42.000000000 -0400
@@ -1,5 +1,5 @@
 /*
- * RAM $Id: flags.c 13 2008-10-11 14:10:30Z quixadhal $
+ * RAM $Id: flags.c 15 2008-10-12 06:19:42Z quixadhal $
  */
 
 /***************************************************************************
@@ -38,8 +38,8 @@
 #include "merc.h"
 #include "db.h"
 #include "interp.h"
-#include "lookup.h"
 #include "tables.h"
+#include "lookup.h"
 
 void do_flag(CHAR_DATA *ch, const char *argument)
 {
diff -buraP 014/src/interp.h 015/src/interp.h
--- 014/src/interp.h	2008-10-11 10:10:30.000000000 -0400
+++ 015/src/interp.h	2008-10-12 02:19:42.000000000 -0400
@@ -1,5 +1,5 @@
 /*
- * RAM $Id: interp.h 13 2008-10-11 14:10:30Z quixadhal $
+ * RAM $Id: interp.h 15 2008-10-12 06:19:42Z quixadhal $
  */
 
 /***************************************************************************
@@ -60,6 +60,9 @@
     sh_int              show;
 };
 
+/* Why is this in interp again??? */
+extern bool				fLogAll;
+
 /* the command table itself */
 extern	const	struct	cmd_type	cmd_table	[];
 
diff -buraP 014/src/magic.c 015/src/magic.c
--- 014/src/magic.c	2008-10-11 10:10:30.000000000 -0400
+++ 015/src/magic.c	2008-10-12 02:19:42.000000000 -0400
@@ -1,5 +1,5 @@
 /*
- * RAM $Id: magic.c 13 2008-10-11 14:10:30Z quixadhal $
+ * RAM $Id: magic.c 15 2008-10-12 06:19:42Z quixadhal $
  */
 
 /***************************************************************************
@@ -92,7 +92,6 @@
  */
 int slot_lookup( int slot )
 {
-    extern bool fBootDb;
     int sn;
 
     if ( slot <= 0 )
diff -buraP 014/src/merc.h 015/src/merc.h
--- 014/src/merc.h	2008-10-11 10:10:30.000000000 -0400
+++ 015/src/merc.h	2008-10-12 02:19:42.000000000 -0400
@@ -1,5 +1,5 @@
 /*
- * RAM $Id: merc.h 13 2008-10-11 14:10:30Z quixadhal $
+ * RAM $Id: merc.h 15 2008-10-12 06:19:42Z quixadhal $
  */
 
 /***************************************************************************
@@ -1870,54 +1870,6 @@
     char *      others_auto;
 };
 
-
-
-/*
- * Global constants.
- */
-extern	const	struct	str_app_type	str_app		[26];
-extern	const	struct	int_app_type	int_app		[26];
-extern	const	struct	wis_app_type	wis_app		[26];
-extern	const	struct	dex_app_type	dex_app		[26];
-extern	const	struct	con_app_type	con_app		[26];
-
-extern	const	struct	class_type	class_table	[MAX_CLASS];
-extern	const	struct	weapon_type	weapon_table	[];
-extern  const   struct  item_type	item_table	[];
-extern	const	struct	wiznet_type	wiznet_table	[];
-extern	const	struct	attack_type	attack_table	[];
-extern  const	struct  race_type	race_table	[];
-extern	const	struct	pc_race_type	pc_race_table	[];
-extern	const	struct	liq_type	liq_table	[];
-extern	const	struct	skill_type	skill_table	[MAX_SKILL];
-extern  const   struct  group_type      group_table	[MAX_GROUP];
-extern          struct social_type      social_table	[MAX_SOCIALS];
-extern	const char *			title_table	[MAX_CLASS][MAX_LEVEL+1][2];
-extern   const char * dir_name        [];
-extern   const char * dir_abbrev      [];
-extern   const sh_int  rev_dir        [];
-
-
-/*
- * Global variables.
- */
-extern		HELP_DATA	  *	help_first;
-extern		SHOP_DATA	  *	shop_first;
-
-extern		CHAR_DATA	  *	char_list;
-extern		DESCRIPTOR_DATA   *	descriptor_list;
-extern		OBJ_DATA	  *	object_list;
-extern		NOTE_DATA	  *	note_list;
-extern		NOTE_DATA	  *	note_free;
-
-extern		char			bug_buf		[];
-extern		time_t			current_time;
-extern		bool			fLogAll;
-extern		KILL_DATA		kill_table	[];
-extern		char			log_buf		[];
-extern		TIME_INFO_DATA		time_info;
-extern		WEATHER_DATA		weather_info;
-
 /*
  * The crypt(3) function is not available on some operating systems.
  * In particular, the U.S. Government prohibits its export from the
@@ -1928,8 +1880,6 @@
 #define crypt(s1, s2)	(s1)
 #endif
 
-
-
 /*
  * Data files used by the server.
  *
@@ -2012,6 +1962,25 @@
 void act_new( const char *format, CHAR_DATA *ch, const void *arg1, 
 	      const void *arg2, int type, int min_pos);
 
+/* const.c */
+extern	const	struct	str_app_type	str_app		[26];
+extern	const	struct	int_app_type	int_app		[26];
+extern	const	struct	wis_app_type	wis_app		[26];
+extern	const	struct	dex_app_type	dex_app		[26];
+extern	const	struct	con_app_type	con_app		[26];
+extern	const	struct	class_type	class_table	[MAX_CLASS];
+extern	const	struct	weapon_type	weapon_table	[];
+extern  const   struct  item_type	item_table	[];
+extern	const	struct	wiznet_type	wiznet_table	[];
+extern	const	struct	attack_type	attack_table	[];
+extern  const	struct  race_type	race_table	[];
+extern	const	struct	pc_race_type	pc_race_table	[];
+extern	const	struct	liq_type	liq_table	[];
+extern	const	struct	skill_type	skill_table	[MAX_SKILL];
+extern  const   struct  group_type      group_table	[MAX_GROUP];
+extern	const char *			title_table	[MAX_CLASS][MAX_LEVEL+1][2];
+
+
 /* effect.c */
 void acid_effect(void *vo, int level, int dam, int target);
 void cold_effect(void *vo, int level, int dam, int target);
diff -buraP 014/src/recycle.h 015/src/recycle.h
--- 014/src/recycle.h	2008-10-11 10:10:30.000000000 -0400
+++ 015/src/recycle.h	2008-10-12 02:19:42.000000000 -0400
@@ -1,5 +1,5 @@
 /*
- * RAM $Id: recycle.h 13 2008-10-11 14:10:30Z quixadhal $
+ * RAM $Id: recycle.h 15 2008-10-12 06:19:42Z quixadhal $
  */
 
 /***************************************************************************
@@ -29,10 +29,6 @@
 *	ROM license, in the file Rom24/doc/rom.license			   *
 ***************************************************************************/
 
-/* externs */
-extern char str_empty[1];
-extern int mobile_count;
-
 /* stuff for providing a crash-proof buffer */
 
 #define MAX_BUF		16384
diff -buraP 014/src/save.c 015/src/save.c
--- 014/src/save.c	2008-10-11 10:10:30.000000000 -0400
+++ 015/src/save.c	2008-10-12 02:19:42.000000000 -0400
@@ -1,5 +1,5 @@
 /*
- * RAM $Id: save.c 13 2008-10-11 14:10:30Z quixadhal $
+ * RAM $Id: save.c 15 2008-10-12 06:19:42Z quixadhal $
  */
 
 /***************************************************************************
@@ -38,8 +38,8 @@
 
 #include "merc.h"
 #include "recycle.h"
-#include "lookup.h"
 #include "tables.h"
+#include "lookup.h"
 #include "db.h"
 #include "magic.h"
  
diff -buraP 014/src/scan.c 015/src/scan.c
--- 014/src/scan.c	2008-10-11 10:10:30.000000000 -0400
+++ 015/src/scan.c	2008-10-12 02:19:42.000000000 -0400
@@ -1,5 +1,5 @@
 /*
- * RAM $Id: scan.c 13 2008-10-11 14:10:30Z quixadhal $
+ * RAM $Id: scan.c 15 2008-10-12 06:19:42Z quixadhal $
  */
 
 /***************************************************************************
@@ -37,6 +37,7 @@
 
 #include "merc.h"
 #include "db.h"
+#include "act.h"
 #include "interp.h"
 
 const char * distance[4]=

Site Stats

Snippets: 1791
Codebases: 571