(svn r9499) [NoAI] -Revert r9498: reverted part of ai_sign.cpp, as by policy this is the road we take
--- 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;
}