Commit Graph

179 Commits (d7b0aa47c5dc27184cbdcfffe31963ffa26b7ac1)

Author SHA1 Message Date
belugas 7dc212edeb (svn r14135) -Codechange: Add owner to waypoints. Previously, it was guessed from rail underneath it. 16 years ago
frosch f625ecbeba (svn r14134) -Fix (r12667, r13579) [FS#2245]: Update 'current_order' when changing 'cur_order_index'. 16 years ago
rubidium 99efe9aaae (svn r14097) -Fix [FS#2085]: one couldn't get a list of vehicles sharing an order when the number of orders was 0; you could see that the vehicles had a shared order though. 16 years ago
rubidium abd9f74871 (svn r14096) -Codechange: merge the shared order's vehicle list management to a single location. 16 years ago
rubidium 2f7c20eccd (svn r14092) -Cleanup (r14083): dead code, i.e. unused function. 16 years ago
rubidium 0dfaa88c1e (svn r13949) -Codechange [YAPP]: Declare the functions for processing conditional orders as non-static. (michi_cc) 16 years ago
rubidium b607b51d93 (svn r13753) -Cleanup (r13752): save before commit instead of the other way around is usually better. 16 years ago
rubidium a6e314bbba (svn r13752) -Fix [FS#2130]: correctly restore conditional orders when they are put 'into' backup. 16 years ago
rubidium 0f4d9a8e49 (svn r13704) -Fix: make timetables work more sensible when used in conjunction with conditional orders, i.e. make it possibly to tell how long to travel to the next destination if you jump. 16 years ago
rubidium 7ed892411a (svn r13662) -Fix [FS#2113]: crash when adding conditional orders to ships. 16 years ago
rubidium 7e50278d8e (svn r13633) -Fix: restoring 'service at depot X' orders from the order backup failed. 16 years ago
rubidium 525c964f53 (svn r13579) -Fix [FS#2088]: process the order coming after a conditional order, otherwise the vehicle would already leaving the station before it knows where the next destination is, making it leave in the wrong way. However, after processing as many conditional orders as there are in the order list it will stop processing them in order to not create an infinite loop. 16 years ago
rubidium fd0be850fe (svn r13358) -Codechange: split next order determination and conditional order processing functionality from the order handling. Patch based on work by michi_cc. 16 years ago
rubidium 923e21129c (svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games. 16 years ago
rubidium 5c5ee7eb57 (svn r13301) -Fix [FS#1997]: resolve more MSVC 9 x64 warnings. 16 years ago
smatz 51ca426c4b (svn r13254) -Fix: waypoint orders could have invalid flags set after conversion 16 years ago
smatz 9fa52f7316 (svn r13253) -Codechange: simplify conversion of old orders a bit 16 years ago
smatz f9e7fa4c88 (svn r13252) -Fix: when converting orders from older savegames, set 'Unload and leave empty' for 'Unload' orders 16 years ago
rubidium 4625695653 (svn r13251) -Codechange: rename _patches to _settings as that is more logic.
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
16 years ago
rubidium 9defec7876 (svn r13165) -Codechange: replace some RebuildXXXList/ResortXXXList+InvalidateWindowXXX with InvalidateWindowXXXData. 16 years ago
rubidium 76b8970a33 (svn r13100) -Codechange: reduce the amount of parameters passed via AddNewsMessage as there is (for each news message type) a tuple of 4 parameters that is the same for all calls. 16 years ago
rubidium d03994098b (svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description. 16 years ago
rubidium a1e77073fe (svn r12949) -Fix [FS#1978]: no loading/no unloading orders were 'forgotten' during manual replaces. 16 years ago
rubidium d1ddff90d9 (svn r12935) -Fix [FS#1975]: vehicles forget their manual depot order when stopping at a station. Now we just pass through the station without stopping when a vehicle has been given a depot order. 16 years ago
bjarni 757de2bdf5 (svn r12913) -Add: ability to backup and restore a player's economic data and data for a vehicle (or chain of vehicles)
Autoreplace uses this with the following benefits:
  -Mass autoreplace (the button in the depot window) will now estimate costs correctly
  -Autoreplace now either replaces correctly or manages to keep the original vehicle (no more broken trains)
  Thanks to Ammler for testing this
16 years ago
smatz 9fc355fca5 (svn r12862) -Codechange: reduce code duplication for VehicleType -> WindowClass lookup 16 years ago
rubidium 02cdf01507 (svn r12754) -Codechange: split depot.h into depot_map.h, depot_func.h and depot_base.h and remove quite a lot of unneeded (before this) includes of depot.h. 16 years ago
smatz 059e94e355 (svn r12753) -Codechange: do not use IsDepotTypeTile() where simpler function can be used 16 years ago
smatz 9488db56d4 (svn r12745) -Codechange: a bit of naming conventions, introduce Is*DepotTile() 16 years ago
frosch 7ba1d9076f (svn r12716) -Fix: Do not compare StationIDs with DepotIDs or WaypointIDs. 16 years ago
rubidium 4f0bfa91ab (svn r12696) -Fix: loading ancient savegames could result in invalid orders in order lists with all related problems. 16 years ago
rubidium e8ee93b593 (svn r12689) -Feature: non-stop(or rather no non-stop) and via orders for road vehicles. 16 years ago
rubidium 9349767e1d (svn r12681) -Fix [FS#1921]: aircraft stopping mid-air. 16 years ago
rubidium ed43ffe435 (svn r12678) -Fix [FS#1918]: when a road vehicle has a tram only stop multiple times in a row in it's orders, only the first one would be skipped. 16 years ago
rubidium ed250cc7b5 (svn r12670) -Add: unconditional/always order 'jump/skip' variable. 16 years ago
rubidium 8410bff078 (svn r12668) -Fix (12667): swapping of variables went wrong. 16 years ago
rubidium ac94b6384b (svn r12667) -Feature: conditional 'skip/jump' orders. 16 years ago
rubidium cebe2001ba (svn r12661) -Add: ability to send a vehicle (using default orders) to the nearest depot. 16 years ago
rubidium ba0a5814c2 (svn r12652) -Codechange: rework the order GUI a little more to make it a little more clear that 'transfer' is just an unload type. 16 years ago
rubidium 6379c30d26 (svn r12650) -Feature: ability to force a vehicle to not load at a station.
-Feature: ability to force a vehicle to not unload at a station.
16 years ago
rubidium 5992dad01f (svn r12648) -Feature: allow four different non-stop types in a single game instead of two. The "TTDP compatible order" setting now only sets the default behaviour of new trains.
-Feature: allow three different load type in a single game instead of two. One can choose full load all and full load any instead of full load being governed by the "full load any" patch setting.
16 years ago
rubidium 70f3413a36 (svn r12641) -Codechange: do not use the same button for two completely distinct tasks, just make an extra button for it and hide them when not needed. 16 years ago
rubidium 82155367f6 (svn r12640) -Codechange: let GetLoadType make a difference between full load and full load any based on the patch setting instead of using the patch setting directly. 16 years ago
rubidium d178345947 (svn r12639) -Fix: order window was not marked dirty on changed orders. 16 years ago
rubidium c41624bb94 (svn r12636) -Codechange: make CmdModifyOrder a little more flexible and remove 'hack' that used the full load flag to set the service if needed flag. 16 years ago
rubidium d8f88f06d4 (svn r12633) -Fix: could not make a (go-to) depot order. 16 years ago
maedhros 85e5053b68 (svn r12630) -Fix (r12600): Missing 'break' made it impossible to add waypoints to vehicle orders. 16 years ago
frosch 96700d5605 (svn r12629) -Codechange: Split VehicleNeedsService() into Vehicle::NeedsServicing() and Vehicle::NeedsAutomaticServicing().
-Fix (r11052): Disable servicing by service-interval if a vehicle has depot orders.
16 years ago
rubidium 71a2dd21fd (svn r12628) -Fix: TTDP compatible non-stop wasn't handled properly. 16 years ago
rubidium f04ecd2e4a (svn r12618) -Codechange: as load and unload type are now split, some case statements got ugly. 16 years ago
rubidium d74c6ffb62 (svn r12617) -Codechange: add type safety to the Order's load and unload types. 16 years ago
rubidium f1cd7ef5ee (svn r12615) -Codechange: rename some enums related to depot orders to make it more clear that they are no loading/unloading flags. Also add more type strictness. 16 years ago
rubidium 77dca1f023 (svn r12608) -Fix [FS#1909]: pressing 'Load' did not cancel the full load order. 16 years ago
rubidium f46ae97d8e (svn r12601) -Fix (r12587): do not reset the index of orders (causes loading ancient savegames to loop infinitively. 16 years ago
rubidium c57a1d74c3 (svn r12600) -Codechange: make GetNonStopType return a more augmented type; not is there a non-stop order but the kind of non-stop order, so one doesn't need to check _patches.new_nonstop type everywhere. 16 years ago
smatz 6af1fb2bdd (svn r12599) -Codechange: force AllocateSafeRaw() to be linked to simplify compiler's decisions about inlining 16 years ago
rubidium d90a041230 (svn r12595) -Codechange: hide Order's flags in the last few cases. 16 years ago
rubidium fb1c4eccd8 (svn r12593) -Codechange: hide Order's flags in most of the code. 16 years ago
rubidium d6623cf654 (svn r12588) -Codechange: do not access the destination of an order directly. 16 years ago
rubidium 8cd1795fe3 (svn r12587) -Codechange: unduplicate some code in the Unpack*Order functions and move the 'normal' case Pack/Unpack to Order. 16 years ago
rubidium e68b2088ce (svn r12586) -Codechange: do not access an order's refit variables directly. 16 years ago
rubidium 5b47f81b0f (svn r12584) -Codechange: do not access the order type directly. 16 years ago
rubidium 56e63a6044 (svn r12583) -Codechange: make AssignOrder a class function of order. 16 years ago
rubidium 669b4bc609 (svn r12582) -Codechange: move some (needlessly) static inlined functions from order_base.h to order_cmd.cpp. 16 years ago
rubidium 84211a8fea (svn r12581) -Fix (r12580): trains would not stop correctly on intermediate stations when non-stop was not enabled. 16 years ago
rubidium aef20ec54d (svn r12580) -Codechange: merge some logical related to non-stop orders. 16 years ago
rubidium 5eb5889954 (svn r12578) -Codechange: merge the aircrafts ProcessOrder too into the 'unified' ProcessOrder. 16 years ago
rubidium bdd64495cd (svn r12575) -Codechange: unduplicate Process*Orders for trains, ships and road vehicles. 16 years ago
rubidium 6f15d34fe5 (svn r12495) -Codechange: reduce the dependency on newgrf_station.h (especially because newgrf_station.h includes a lot of stuff). 16 years ago
rubidium 2edd403656 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h. 16 years ago
rubidium 4a1035ab95 (svn r12488) -Codechange: split order.h into order_base.h and order_func.h. 16 years ago
rubidium 450d234745 (svn r12466) -Codechange: move DestinationID to a more logical location. 16 years ago
rubidium eeabab4555 (svn r12459) -Codechange: split news.h into news_type.h and news_func.h. 16 years ago
glx 1976d2d37c (svn r12345) -Fix [FS#1828](r12296): don't try to restore backupped timetable when timetabling is disabled 17 years ago
glx 459fd42e1d (svn r12296) -Fix [FS#1549]: restore timetable from backupped orders and add group ID to the backup 17 years ago
smatz 507728f46b (svn r12129) -Change [FS#1759]: simplified patch settings for pathfinders (Yorick) 17 years ago
belugas fc4f6dcfb1 (svn r12040) -Codechange: Change IsOrderListShared from a simple function to a class member(MagicBuzz). 17 years ago
rubidium 9444eb4484 (svn r11939) -Codechange: some type fixes and very initial steps into supporting NDS by default. Based on work by Dominik. 17 years ago
rubidium 576f8ad93e (svn r11866) -Codechange: swap OFB_* and OF_* so it conceptually in sync with other cases of *B_* vs *_* like VETSB_* and VETS_*. 17 years ago
rubidium 5c4150d304 (svn r11832) -Codechange: get rid of (quite) some VARDEFs. 17 years ago
rubidium d4e6a6bf57 (svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h. 17 years ago
peter1138 ab8382c0db (svn r11822) -Codechange: Replaced fixed size custom name array. Names are now attached to their object directly and there is
no limit to the amount of names.
-Fix: NewGRF engines could not be renamed.
17 years ago
rubidium ac528411df (svn r11818) -Codechange: split player.h into smaller pieces. 17 years ago
rubidium a3ccdcea36 (svn r11777) -Codechange: split the string header and make do not include it when it's not necessary. 17 years ago
rubidium b0ac283aec (svn r11774) -Change: do not include variables.h in a header when it is not needed. 17 years ago
rubidium 384503e7d3 (svn r11706) -Codechange: split vehicle.h and remove another bunch of useless includes. 17 years ago
rubidium 429521a7d1 (svn r11692) -Codechange: move some functions from 'functions.h' to a more logical place and remove about 50% of the includes of 'functions.h' 17 years ago
rubidium bf98e25e43 (svn r11691) -Codechange: move+rename helpers.hpp and only include it when it is really needed. 17 years ago
rubidium 9e9cfe6e59 (svn r11677) -Codechange: move price and command related types/functions to their respective places. 17 years ago
rubidium 433a9f3c09 (svn r11675) -Codechange: split the string types from the string functions. 17 years ago
smatz 5acc147c1c (svn r11625) -Codechange: add CO_* enum at some places, add includes of order.h too 17 years ago
glx fb1d768924 (svn r11618) -Fix: buoys are just waypoints, so don't allow load/unload/transfert for them 17 years ago
skidd13 a91c2a4c39 (svn r11485) -Codechange: Remove the doubled function ToggleBitT and rename the remaining to fit with the naming style 17 years ago
skidd13 5c31a973a1 (svn r11482) -Codechange: Remove the doubled function ClrBitT and rename the remaining to fit with the naming style 17 years ago
skidd13 71c4325c50 (svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style 17 years ago
rubidium c393a28028 (svn r11370) -Fix [FS1384]: manually replacing a vehicle with shared orders makes it lose it's order index and service interval. Patch by jthill. 17 years ago
glx 8e5480aa16 (svn r11214) -Fix [FS#1296]: planes can't use heliports so refuse these orders 17 years ago
rubidium beeae81f60 (svn r11184) -Codechange: cleanup the code related to backup orders. 17 years ago
rubidium 2dd7a5d296 (svn r10773) -Codechange: use pool.CleanPool instead of CleanPool(&pool) and similarly for AddBlock*. 17 years ago
rubidium d751ce56cb (svn r10760) -Codechange: make the order struct use the pool item class as super class. 17 years ago