diff options
author | truelight <truelight@openttd.org> | 2005-01-12 11:21:28 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-01-12 11:21:28 +0000 |
commit | 97dd511971f00a2affaa8d17bb7d0d6c3e13f206 (patch) | |
tree | 23a6d3557feb58903656bb5447653052cda86af7 /main_gui.c | |
parent | 38b0a06d85d534516d6252119e967f1ec1142baf (diff) | |
download | openttd-97dd511971f00a2affaa8d17bb7d0d6c3e13f206.tar.xz |
(svn r1486) -Codechange: moved all 'signs' stuff to signs.c/h and prepared it for
dynamic arrays
Diffstat (limited to 'main_gui.c')
-rw-r--r-- | main_gui.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/main_gui.c b/main_gui.c index 77c9d680e..1df9bcdae 100644 --- a/main_gui.c +++ b/main_gui.c @@ -14,6 +14,7 @@ #include "console.h" #include "sound.h" #include "network.h" +#include "signs.h" #ifdef ENABLE_NETWORK #include "network_data.h" @@ -370,7 +371,7 @@ void ShowNetworkNeedCompanyPassword() void ShowRenameSignWindow(SignStruct *ss) { - _rename_id = ss - _sign_list; + _rename_id = ss->index; _rename_what = 0; ShowQueryString(ss->str, STR_280B_EDIT_SIGN_TEXT, 30, 180, 1, 0); } @@ -392,19 +393,6 @@ void ShowRenameWaypointWindow(Waypoint *cp) ShowQueryString(STR_WAYPOINT_RAW, STR_EDIT_WAYPOINT_NAME, 30, 180, 1, 0); } -void CcPlaceSign(bool success, uint tile, uint32 p1, uint32 p2) -{ - if (success) { - ShowRenameSignWindow(_new_sign_struct); - ResetObjectToPlace(); - } -} - -void PlaceProc_Sign(uint tile) -{ - DoCommandP(tile, 0, 0, CcPlaceSign, CMD_PLACE_SIGN | CMD_MSG(STR_2809_CAN_T_PLACE_SIGN_HERE)); -} - static void SelectSignTool() { if (_cursor.sprite == 0x2D2) |