Commit Graph

409 Commits

Author SHA1 Message Date
smatz 22e9d59559 (svn r17439) -Fix (r17436): you weren't paid for cargo delivered to houses and headquarters anymore 2009-09-07 07:39:08 +00:00
smatz ee685c8287 (svn r17316) -Codechange: use Industry::GetByTile() instead of GetIndustryByTile() 2009-08-30 11:47:41 +00:00
rubidium c539b59da3 (svn r17268) -Fix [FS#3143]: Station/Town window titles weren't updated when they got renamed 2009-08-22 20:28:30 +00:00
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 2009-08-21 20:21:05 +00:00
smatz 2a430d981f (svn r17113) -Change [FS#265][FS#2094][FS#2589]: apply the subsidy when subsidy's destination is in station's catchment area and cargo packets originate from subsidy's source
-Change [FS#1134]: subsidies aren't bound to stations after awarding anymore, they still apply to town or industry, no matter what station is used for loading and unloading. Awarded subsidies from older savegames are lost
-Change [NoAI]: due to these changes, AISubsidy::GetSource and AISubsidy::GetDestination now return STATION_INVALID for awarded subsidies
2009-08-08 16:42:55 +00:00
rubidium 1fe3ad3288 (svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives 2009-08-05 17:59:21 +00:00
rubidium 74cec1f0c4 (svn r17039) -Fix (r16988): segfault when removing rail with waypoint remover and vice versa 2009-08-02 14:54:42 +00:00
rubidium a148a991bb (svn r17002) -Change: also support distant join for waypoints 2009-07-31 16:28:28 +00:00
rubidium c2fdb85c0d (svn r17000) -Change: allow overbuilding/extending waypoints 2009-07-30 22:06:54 +00:00
rubidium 5bbf83ebbe (svn r16998) -Codechange: rework/unify 'find station to join with' code and use it for all stations 2009-07-30 21:41:21 +00:00
rubidium 5592eb4955 (svn r16993) -Change: make the rail waypoint builder draggable 2009-07-30 17:44:13 +00:00
rubidium 37e6f6a003 (svn r16990) -Codechange: unify some (command) naming w.r.t. stations/waypoints. 2009-07-29 22:32:20 +00:00
rubidium a52cd653d4 (svn r16989) -Codechange: unify the code for demolishing (dynamite) stations and waypoints. 2009-07-29 22:13:12 +00:00
rubidium 959a5e690b (svn r16988) -Codechange: unify the code for removing (parts of) stations and waypoints 2009-07-29 22:09:05 +00:00
rubidium e6480d823a (svn r16987) -Codechange: simplify the code to loop train station for the station demolish code 2009-07-29 21:49:37 +00:00
rubidium bfcf32c64e (svn r16985) -Codechange: simplify the station removal code a bit by giving proper names and using some helper functions 2009-07-29 21:41:45 +00:00
rubidium 2543b1b20a (svn r16974) -Codechange: do simple station build checks and 'decode' p1/p2 first 2009-07-28 18:52:16 +00:00
rubidium 39ac44ad49 (svn r16972) -Fix [FS#3058] (r16942): mixup of variables caused, in some cases, rail stations to have incorrect width/height. 2009-07-28 13:35:50 +00:00
rubidium 2ec12a3f58 (svn r16966) -Codechange: BEGIN_TILE_LOOP and END_TILE_LOOP reworked into TILE_LOOP, which means no more duplication of parameters between BEGIN_TILE_LOOP and END_TILE_LOOP 2009-07-26 21:50:30 +00:00
rubidium 5b576e6e7a (svn r16959) -Codechange: make the station joiner a bit more aware of the difference between waypoints and stations. 2009-07-26 09:25:00 +00:00
rubidium 4017439c37 (svn r16948) -Codechange: some code reductions and usage of wrapper functions 2009-07-25 10:39:58 +00:00
rubidium 7440ec7a73 (svn r16947) -Codechange: use TileArea instead of train_tile, trainst_w and trainst_h. 2009-07-25 08:54:19 +00:00
rubidium 3ec35e4e8d (svn r16942) -Codechange: document CanExpandRailStation and remove the 'magic' array of numbers for a named struct 2009-07-24 17:05:17 +00:00
rubidium cf38a5bee6 (svn r16939) -Codechange: s/RailwayStation/RailStation/ to unify the way it's written. 2009-07-24 11:47:12 +00:00
rubidium 803cf87885 (svn r16934) -Codechange: introduce a simple helper function to check whether a station is pending deletion or not 2009-07-24 07:38:10 +00:00
rubidium 5f9ee68eac (svn r16926) -Fix (r16925): if checking whether a station can be adjoined, don't check whether 'the other station you have already found' to be valid but the station that you just found. Especially because you won't have found as station until you have found one. 2009-07-23 12:13:53 +00:00
rubidium 16ad8df175 (svn r16925) -Fix (r16909): guard commands more against using waypoints as stations and/or accidentally reusing waypoints for stations or vice versa. 2009-07-23 12:02:09 +00:00
rubidium f48cc9d4bf (svn r16923) -Codechange: move Cmd*Buoy* to waypoint_cmd.cpp and make them behave more like waypoints, e.g. reuse station signs of recently deleted buoys 2009-07-23 00:14:05 +00:00
rubidium cb0409fe52 (svn r16912) -Codechange: split waypoint.h in waypoint_base.h and waypoint_func.h 2009-07-22 10:18:19 +00:00
rubidium 68ead6b84f (svn r16909) -Fix [FS#2996]: NewGRF stations would be triggering assertions all over the place when using the more advanced station types.
-Change: make (rail) waypoints sub classes of 'base stations', make buoys waypoints and unify code between them where possible.
2009-07-22 08:59:57 +00:00
rubidium 8405d7d7e7 (svn r16907) -Codechange: make a more clear distinction between reservation functions that return a bool and that return TrackBits; GetRailStationReservation vs GetRailwayStationReservation, which one returns the bool and which one the TrackBits? 2009-07-21 22:37:10 +00:00
frosch f09df64608 (svn r16899) -Fix (r16896): Missing 'return'. 2009-07-21 16:20:02 +00:00
rubidium 43eda3dfbf (svn r16896) -Codechange: make station spec allocation and station animation functions work for both stations and waypoints 2009-07-21 11:11:05 +00:00
rubidium 42e1bdacbc (svn r16880) -Codechange: replace magic numbers with their enums and use a clearer variable name than 'flag' in the station naming function. 2009-07-19 15:58:47 +00:00
rubidium 861a2163f6 (svn r16869) -Codechange: make drawing waypoints a tiny bit more like drawing stations 2009-07-18 10:01:31 +00:00
rubidium 8c17c6cb2b (svn r16868) -Codechange: unify UpdateAll[Station|Waypoint]VirtCoords 2009-07-18 08:41:58 +00:00
smatz 1f29e38b83 (svn r16849) -Codechange: replace GetCargo() by CargoSpec::Get() 2009-07-16 19:00:13 +00:00
rubidium 2b1c43f81f (svn r16825) -Codechange: unify dirtying when updating the viewport signs. 2009-07-13 23:15:13 +00:00
rubidium e067d4a4b8 (svn r16821) -Codechange: unify the naming of type::UpdateVirtCoord and UpdateAll[Type]VirtCoords. 2009-07-13 22:33:25 +00:00
smatz b6960e4e17 (svn r16814) -Codechange: make IsNormalAircraft() member of Aircraft 2009-07-13 16:37:27 +00:00
rubidium 86768da0f6 (svn r16791) -Codechange: unify (and document) the Remove[StationType] functions. 2009-07-10 22:46:30 +00:00
rubidium 9ae07bba85 (svn r16766) -Codechange: remove station->MarkDirty. It is in all cases meant to only update the sign and not invalidate the widget; the widget would be invalidated by a call before/after the call to MarkDirty or it wouldn't make sense because e.g. the window doesn't exist anymore/yet. 2009-07-08 12:01:26 +00:00
rubidium 3fb1506d6d (svn r16765) -Codechange: give ViewportSign's width_1 and width_2 more self explaining names 2009-07-08 08:50:20 +00:00
rubidium 3086383cdc (svn r16761) -Codechange: make UpdateViewportSignPos(ition) a class function of ViewportSign 2009-07-07 16:51:20 +00:00
rubidium fbb2fb9720 (svn r16760) -Codechange: make UpdateStationVirtCoord a function of Station 2009-07-07 16:43:58 +00:00
rubidium 4d14c1b534 (svn r16722) -Codechange: unify the naming of the Is/Set/HasArticulatedPart functions 2009-07-02 09:06:15 +00:00
rubidium 61e735ba4c (svn r16721) -Codechange: make Is/SetRoadVehicleFront, Is/Set/HasArticulatedPart member of RoadVehicle. 2009-07-02 08:59:27 +00:00
smatz adc5363202 (svn r16717) -Codechange: make IsFrontEngine() member of Train 2009-07-01 22:22:01 +00:00
rubidium 927c4a0fe8 (svn r16709) -Fix [FS#2994]: the list of animated tiles could have duplicates (only for old savegames) and tiles that weren't animated 2009-07-01 14:51:05 +00:00
frosch a288e4d82f (svn r16678) -Codechange: Turn CargoArray into a class, so one does not have to deal with sizeof() wrt. typedef-ed arrays. 2009-06-27 21:06:58 +00:00