From: <ma...@us...> - 2011-12-19 14:24:32
|
Revision: 7850 http://planeshift.svn.sourceforge.net/planeshift/?rev=7850&view=rev Author: magodra Date: 2011-12-19 14:24:26 +0000 (Mon, 19 Dec 2011) Log Message: ----------- - Added <empty/> keyword to behavior scripts. Server didn't allow for empty string, so with this the user can make it explicit that the script should be empty. Modified Paths: -------------- trunk/src/npcclient/npcbehave.cpp Modified: trunk/src/npcclient/npcbehave.cpp =================================================================== --- trunk/src/npcclient/npcbehave.cpp 2011-12-19 14:22:49 UTC (rev 7849) +++ trunk/src/npcclient/npcbehave.cpp 2011-12-19 14:24:26 UTC (rev 7850) @@ -229,6 +229,9 @@ reactions.Insert(0,r); // reactions get inserted at beginning so subclass ones take precedence over superclass. } + else if(strcmp( node->GetValue(), "empty" ) == 0) + { + } else { Error1("Node under NPCType is not 'behavior' or 'react'. Error in DB XML"); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |