# HG changeset patch # User truelight # Date 1174991622 0 # Node ID 33b2f192bb34941ad9ee5a242cad53c02c4d04f1 # Parent ff2dde050a4cfc62c76b383d495ff1ccb7920704 (svn r9499) [NoAI] -Revert r9498: reverted part of ai_sign.cpp, as by policy this is the road we take diff -r ff2dde050a4c -r 33b2f192bb34 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; }