equal
deleted
inserted
replaced
184 /** |
184 /** |
185 * |
185 * |
186 * Callback function that is called after a sign is placed |
186 * Callback function that is called after a sign is placed |
187 * |
187 * |
188 */ |
188 */ |
189 void CcPlaceSign(bool success, uint tile, uint32 p1, uint32 p2) |
189 void CcPlaceSign(bool success, TileIndex tile, uint32 p1, uint32 p2) |
190 { |
190 { |
191 if (success) { |
191 if (success) { |
192 ShowRenameSignWindow(_new_sign_struct); |
192 ShowRenameSignWindow(_new_sign_struct); |
193 ResetObjectToPlace(); |
193 ResetObjectToPlace(); |
194 } |
194 } |
198 * |
198 * |
199 * PlaceProc function, called when someone pressed the button if the |
199 * PlaceProc function, called when someone pressed the button if the |
200 * sign-tool is selected |
200 * sign-tool is selected |
201 * |
201 * |
202 */ |
202 */ |
203 void PlaceProc_Sign(uint tile) |
203 void PlaceProc_Sign(TileIndex tile) |
204 { |
204 { |
205 DoCommandP(tile, _current_player, 0, CcPlaceSign, CMD_PLACE_SIGN | CMD_MSG(STR_2809_CAN_T_PLACE_SIGN_HERE)); |
205 DoCommandP(tile, _current_player, 0, CcPlaceSign, CMD_PLACE_SIGN | CMD_MSG(STR_2809_CAN_T_PLACE_SIGN_HERE)); |
206 } |
206 } |
207 |
207 |
208 /** |
208 /** |