(svn r9499) [NoAI] -Revert r9498: reverted part of ai_sign.cpp, as by policy this is the road we take noai
authortruelight
Tue, 27 Mar 2007 10:33:42 +0000
branchnoai
changeset 9561 33b2f192bb34
parent 9560 ff2dde050a4c
child 9562 2f4087d63527
(svn r9499) [NoAI] -Revert r9498: reverted part of ai_sign.cpp, as by policy this is the road we take
src/ai/api/ai_sign.cpp
--- a/src/ai/api/ai_sign.cpp	Tue Mar 27 10:22:39 2007 +0000
+++ b/src/ai/api/ai_sign.cpp	Tue Mar 27 10:33:42 2007 +0000
@@ -55,11 +55,13 @@
 	/* Reset the internal NewSignID in case we are in TestMode */
 	AIObject::SetNewSignID(0);
 
-	if (!this->DoCommand(location, 0, 0, CMD_PLACE_SIGN)) return INVALID_SIGN;
+	bool ret = this->DoCommand(location, 0, 0, CMD_PLACE_SIGN);
+	if (!ret) return INVALID_SIGN;
 
 	SignID new_sign_id = AIObject::GetNewSignID();
 	_cmd_text = text;
-	if (!this->DoCommand(0, new_sign_id, 0, CMD_RENAME_SIGN)) {
+	ret = this->DoCommand(0, new_sign_id, 0, CMD_RENAME_SIGN);
+	if (!ret) {
 		this->RemoveSign(new_sign_id);
 		return INVALID_SIGN;
 	}