[mw-devel] MW3 r965 - trunk/src

psycodom at sucs.org psycodom at sucs.org
Tue Jun 12 18:08:29 BST 2007


Author: psycodom
Date: 2007-06-12 18:08:27 +0100 (Tue, 12 Jun 2007)
New Revision: 965

Modified:
   trunk/src/talker.c
Log:
The .restart command now restarts the javascript engine too.
Prevents problems with redefinitions of consts and global variables containing data.



Modified: trunk/src/talker.c
===================================================================
--- trunk/src/talker.c	2007-05-27 18:05:17 UTC (rev 964)
+++ trunk/src/talker.c	2007-06-12 17:08:27 UTC (rev 965)
@@ -17,6 +17,7 @@
 #include "strings.h"
 #include "special.h"
 #include "script.h"
+#include "js.h"
 
 #include "rooms.h"
 #include "ipc.h"
@@ -314,7 +315,10 @@
 	DestroyAllLinks(&ipc_list); ipc_list = NULL;
 	DestroyAllLinks(&force_list); force_list = NULL;
 	DestroyAllLinks(&shutdown_list); shutdown_list = NULL;
-
+	
+	stop_js();
+	setup_js();
+	
 	RoomDestroy(&myroom);
 	DestroyDirections();
 





More information about the mw-devel mailing list