diff options
author | tron <tron@openttd.org> | 2006-08-03 06:44:54 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-08-03 06:44:54 +0000 |
commit | ed26c5e14c6d530b52ef199267648612c456a4d6 (patch) | |
tree | c97ab5288c58e7857825a1db757a20ad123891de /road_gui.c | |
parent | 5f18b6792a67e8e06f3949da63cf11c37cb59d99 (diff) | |
download | openttd-ed26c5e14c6d530b52ef199267648612c456a4d6.tar.xz |
(svn r5723) - Move the declaration of DrawRoadDepotSprite() out of functions.h (but I'm not too happy with the new header)
- Use DiagDirection instead of plain int for the orientation of the depot graphics
- Rename the associated data tables with sprites to something more meaningful
Diffstat (limited to 'road_gui.c')
-rw-r--r-- | road_gui.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/road_gui.c b/road_gui.c index fc16e46fd..91575fa08 100644 --- a/road_gui.c +++ b/road_gui.c @@ -2,6 +2,7 @@ #include "stdafx.h" #include "openttd.h" +#include "road_cmd.h" #include "road_map.h" #include "table/sprites.h" #include "table/strings.h" @@ -353,10 +354,10 @@ static void BuildRoadDepotWndProc(Window *w, WindowEvent *e) w->click_state = (1<<3) << _road_depot_orientation; DrawWindowWidgets(w); - DrawRoadDepotSprite(70, 17, 0); - DrawRoadDepotSprite(70, 69, 1); - DrawRoadDepotSprite( 2, 69, 2); - DrawRoadDepotSprite( 2, 17, 3); + DrawRoadDepotSprite(70, 17, DIAGDIR_NE); + DrawRoadDepotSprite(70, 69, DIAGDIR_SE); + DrawRoadDepotSprite( 2, 69, DIAGDIR_SW); + DrawRoadDepotSprite( 2, 17, DIAGDIR_NW); break; case WE_CLICK: { |