View Single Post
  #1  
Old 02-12-2010, 07:34 AM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,498
Default COMMITTED: Manual WP Add Fix

In reference to http://www.eqemulator.org/forums/showthread.php?t=30564

Waypoint pauses were not able to be set to 0 when using the #wpadd command.

Code:
Index: command.cpp
===================================================================
--- command.cpp	(revision 1245)
+++ command.cpp	(working copy)
@@ -5908,7 +5908,7 @@
 		{   if (sep->arg[1] && !strcasecmp(strlwr(sep->arg[1]),"circular")) type1=0;
 		if (sep->arg[1] && !strcasecmp(strlwr(sep->arg[1]),"random"))	type1=2;
 		if (sep->arg[1] && !strcasecmp(strlwr(sep->arg[1]),"patrol"))	type1=3;
-		if (sep->arg[2] && atoi(sep->arg[2]) > 0)	pause=atoi(sep->arg[2]);
+		if (sep->arg[2] && atoi(sep->arg[2]) >= 0)	pause=atoi(sep->arg[2]);
 		    int32 tmp_grid = database.AddWPForSpawn(c, s2info->GetID(), c->GetX(),c->GetY(),c->GetZ(), pause, type1, type2, zone->GetZoneID());
 		if (tmp_grid)
 			t->CastToNPC()->SetGrid(tmp_grid);
Reply With Quote