equal
deleted
inserted
replaced
634 h = ey - sy + 1; |
634 h = ey - sy + 1; |
635 if (!_railstation.orientation) uintswap(w,h); |
635 if (!_railstation.orientation) uintswap(w,h); |
636 |
636 |
637 // TODO: Custom station selector GUI. Now we just try using first custom station |
637 // TODO: Custom station selector GUI. Now we just try using first custom station |
638 // (and fall back to normal stations if it isn't available). |
638 // (and fall back to normal stations if it isn't available). |
639 DoCommandP(TILE_XY(sx,sy), _railstation.orientation | (w<<8) | (h<<16),_cur_railtype|1<<4, CcStation, |
639 DoCommandP(TileXY(sx, sy), _railstation.orientation | (w << 8) | (h << 16), _cur_railtype | 1 << 4, CcStation, |
640 CMD_BUILD_RAILROAD_STATION | CMD_NO_WATER | CMD_AUTO | CMD_MSG(STR_100F_CAN_T_BUILD_RAILROAD_STATION)); |
640 CMD_BUILD_RAILROAD_STATION | CMD_NO_WATER | CMD_AUTO | CMD_MSG(STR_100F_CAN_T_BUILD_RAILROAD_STATION)); |
641 } |
641 } |
642 |
642 |
643 static void StationBuildWndProc(Window *w, WindowEvent *e) |
643 static void StationBuildWndProc(Window *w, WindowEvent *e) |
644 { |
644 { |