rubidium
eadd6765e1
(svn r11312) -Codechange: implement a overflow safe integer and use that for money and don't misuses CommandCost to have a overflow safe integer. Based on a patch by Noldo.
2007-10-20 14:51:09 +00:00
rubidium
8342c18fb5
(svn r11303) -Fix: EnsureNoVehicle and EnsureNoVehicleOnGround were both used to check whether there was no vehicle on the ground, except that the former didn't take care of aircraft shadows. So now we only use EnsureNoVehicleOnGround.
2007-10-19 22:46:55 +00:00
maedhros
ee4823857f
(svn r11265) -Feature: Make more advanced rail types more expensive to build.
2007-10-14 21:20:12 +00:00
rubidium
ea433ffc64
(svn r11206) -Fix [FS#1299]: half tram bits could be removed in some cases. Based on patches by frosch and skidd13.
2007-10-05 17:53:01 +00:00
rubidium
f54a823129
(svn r11201) -Fix [FS#1283]: minor issue with building one way roads one tile long. Patch by SmatZ.
2007-10-04 20:20:23 +00:00
rubidium
80a3590bf5
(svn r11172) -Codechange: rewrite of town road building and addition of the possibility to clean up unconnected road bits during the local road reconstructions. Based on a patch by skidd13.
2007-09-26 16:12:43 +00:00
rubidium
5c9553d48b
(svn r11128) -Fix: a lot of graphical glitches by changing some bounding boxes. It's not perfect yet, but a *very* good step into the right direction. Patch by frosch.
2007-09-19 16:36:42 +00:00
rubidium
3055d42fc4
(svn r11107) -Feature: some tool so one can still build tunnels under rails (and other structures) when the owner of the structure built it on foundations and if you have enough "empty" space ofcourse. One could use the tool for some other construction needs too. Patch by frosch.
2007-09-14 22:27:40 +00:00
rubidium
c97804461e
(svn r11059) -Fix [FS#1182]: inconsistency between Rail<->ElRail conversions of different kinds of rail containing tiles (normal rail, stations, depots, etc). Patch by SmatZ.
2007-09-08 09:52:02 +00:00
rubidium
88133a97b5
(svn r11056) -Fix [FS#1213]: road/tram tiles would not always get marked dirty properly, causing glitches for non-local players. Patch by SmatZ.
2007-09-07 21:17:01 +00:00
rubidium
6f76bc2449
(svn r11031) -Codechange: reduce the amount of duplication of bit counting functions. Based on patches by skidd13, SmatZ and Belugas.
2007-09-01 08:31:36 +00:00
rubidium
f4482907da
(svn r11005) -Codechange: move the tiletype specific terraforming checks to the functions for those tile types.
...
-Codechange: barren the rail grounds on terraforming.
2007-08-30 17:17:04 +00:00
rubidium
235ad4ab6b
(svn r11003) -Codechange: replace Vehicle->next to Vehicle->Next() and Vehicle->SetNext() so we can trap instances that change a next pointer and (in the future) update the first/previous pointers based on that.
2007-08-30 13:03:56 +00:00
rubidium
71dec585f3
(svn r10890) -Fix [FS#1125]: removing road with the road removal tool would also work with a negative bank account, making the bank account even more negative than it was.
2007-08-14 17:05:33 +00:00
rubidium
36da8a2a38
(svn r10833) -Fix [FS#1115]: assertion (different cost between test and execution) of overbuilding road tunnels with tram tracks (and vice versa) when the dragged area contains both ends of the tunnel.
2007-08-09 05:25:33 +00:00
rubidium
c60988a1d5
(svn r10758) -Codechange: make the depot struct use the pool item class as super class.
2007-08-02 22:33:53 +00:00
rubidium
2800a49f03
(svn r10733) -Codechange: change MP_STREET into MP_ROAD as we use the word "road" everywhere except in the tile type.
2007-07-29 23:42:59 +00:00
rubidium
8cc340681d
(svn r10718) -Fix (r10698): when having a road corner on a slope removing the road bit perpendicular on the slope made the foundation disappear.
2007-07-29 12:11:50 +00:00
rubidium
903a0a08c2
(svn r10698) -Codechange [FS#1082]: simplify the code related to foundations. Primarily removal of (duplicated|magic) code and introduction of few helper functions to ease foundation determination. Patch by frosch.
2007-07-26 16:51:10 +00:00
rubidium
a26ef1ee3a
(svn r10696) -Codechange: remove duplication of the "make sprite transparent" code.
2007-07-26 14:07:11 +00:00
rubidium
e97c2bf621
(svn r10695) -Fix [FS#1079]: building single pieces of road over tramtrack or vice versa on slopes did not work as expected.
2007-07-26 11:19:03 +00:00
rubidium
df009178d4
(svn r10587) -Codechange: move the string/dparam related stuff from variables.h to strings.h
2007-07-16 09:16:58 +00:00
rubidium
fd93cd0411
(svn r10502) -Fix [FS#1017]: trying to get the town from a tile that can never be associated with a town.
2007-07-10 22:45:09 +00:00
rubidium
bf0be8f0bc
(svn r10224) -Fix [FS#891]: the town road belongs to didn't get set properly when a town builds road over tram bits.
2007-06-19 17:27:59 +00:00
rubidium
911f37ee94
(svn r10221) -Fix: the one way sprites weren't drawn in the correct order, so they could remove the tramtrack in some cases.
2007-06-19 15:56:03 +00:00
rubidium
773a7c9cb6
(svn r10205) -Codechange: refactor returning of cost, so it can be more easily modified.
2007-06-18 19:53:50 +00:00
rubidium
82e79b847e
(svn r10200) -Codechange: add "shortcut" for !CmdFailed (CmdSucceeded).
2007-06-18 16:42:40 +00:00
rubidium
3ccc83e640
(svn r10197) -Codechange: replace int32 with CommandCost where appropriate.
2007-06-18 10:48:15 +00:00
maedhros
c186f91cbd
(svn r10097) -Feature: Add support for articulated road vehicles, or callbacks 11 and 17 for
...
road vehicles for those who prefer the technical explanation.
2007-06-11 14:00:16 +00:00
rubidium
740eb9d89a
(svn r10053) -Fix: could not clear a level-crossing tile with tram tracks.
2007-06-07 08:58:21 +00:00
rubidium
4a62006c39
(svn r10004) -Fix: trams can always intersect/have junctions on one way roads (because they only work for busses and lorries).
2007-05-31 18:12:35 +00:00
rubidium
294a154bf7
(svn r9999) -Feature: make it possible to disallow busses and lorries to go a specific way on straight pieces of road.
2007-05-31 15:15:00 +00:00
rubidium
a4750af656
(svn r9996) -Fix: be more strict when building/upgrading roads and/or road stops.
2007-05-31 07:34:40 +00:00
rubidium
1e371a99d2
(svn r9991) -Fix: one could build road when trams were driving on the tile and vice versa.
2007-05-30 20:13:58 +00:00
rubidium
0bdd409765
(svn r9986) -Fix (r9934): flooding towns could not remove tram tracks (boekabart).
2007-05-30 13:16:45 +00:00
rubidium
4f9a0f750a
(svn r9964) -Fix: removing of road should not be free of charge.
2007-05-28 19:26:32 +00:00
maedhros
4f6ffd4e12
(svn r9955) -Codechange: Make _roadveh_enter_depot_unk0 slightly less mysterious.
2007-05-27 09:17:30 +00:00
glx
39463156df
(svn r9951) -Fix: slope check was incomplete when building road over tram track (and vice-versa)
...
-Fix: you could build a drive-through station over a sloped road/tram track
2007-05-27 01:03:59 +00:00
rubidium
fe9bf75436
(svn r9949) -Fix: (road) depots got deowned on bankrupts.
2007-05-26 23:18:42 +00:00
rubidium
9e8f500f7f
(svn r9948) -Fix (r9947): building illegal roads on slopes. Why do 'fixes' always have the tendancy to backfire?
2007-05-26 22:44:09 +00:00
rubidium
5bdf6833b3
(svn r9947) -Fix [FS#807]: don't check whether roadbits may be built when they are already built for another type.
2007-05-26 22:19:04 +00:00
rubidium
ff0bf9fb1f
(svn r9946) -Fix: more places that weren't correctly marked dirty...
2007-05-26 22:01:49 +00:00
rubidium
567035ebb5
(svn r9945) -Fix: bridges were not properly marked dirty when adding/removing roadtypes.
2007-05-26 21:45:16 +00:00
rubidium
336c9a5cc4
(svn r9943) -Fix [FS#806]: building roads/trams did take notice of the foundation of the opposite roadtype.
2007-05-26 21:00:48 +00:00
rubidium
b741bd1b1e
(svn r9942) -Fix [FS#804]: crash when upgrading both ends of a bridge.
2007-05-26 20:52:23 +00:00
rubidium
7e6f19ac1c
(svn r9934) -Fix (r9923): towns could remove 'half' tram tracks.
2007-05-26 13:00:52 +00:00
rubidium
01709037c0
(svn r9931) -Fix: some glitches with catenary and bridges.
2007-05-26 10:40:34 +00:00
rubidium
1360c8c116
(svn r9929) -Fix [FS#803]: fix several drawing issues.
2007-05-26 07:58:49 +00:00
rubidium
a8d9b4e040
(svn r9923) -Add: support for Action 0 Road vehicles, property 1C, bit 0.
2007-05-25 22:07:40 +00:00
rubidium
9fc73931f1
(svn r9921) -Fix (r9892): ownership wasn't properly propagated on owner changes.
2007-05-25 15:37:12 +00:00
rubidium
821e58ac95
(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple road types on a single tile.
2007-05-24 22:41:50 +00:00
rubidium
75f0cb28cd
(svn r9910) -Codechange: prepare road building/removing commands for more road types.
2007-05-24 09:31:09 +00:00
rubidium
33c3420ef4
(svn r9897) -Codechange: prepare the toolbar for more road types.
2007-05-21 21:58:31 +00:00
rubidium
fe420111e8
(svn r9893) -Fix (r9892): various small bugs that only act up when using something different than plain roads.
2007-05-20 22:04:24 +00:00
rubidium
51109475a2
(svn r9892) -Codechange: lots of ground work for allowing multiple types of "road" with multiple owners on a single tile.
2007-05-20 19:14:08 +00:00
truelight
b605f68631
(svn r9846) -Codechange: introduced ZOOM_LVL_MIN and ZOOM_LVL_MAX for the obvious reasons
...
-Codechange: introduced ZOOM_LVL_DETAIL to show/remove details
-Codechange: changed << and >> operator with ZoomLevel to a simple wrapper (that in theory also allows zoom-in besides the current zoom-out)
-Fix r9845: missed some int -> ZoomLevel
2007-05-15 16:08:46 +00:00
truelight
dc191785db
(svn r9844) -Codechange: replace zoomlevel with an enum
...
-Codechange: use predefined enums for viewport zoomlevels
2007-05-15 14:08:39 +00:00
peter1138
e4ada15d49
(svn r9805) -Codechange: Use HASBIT() et al for display options bits.
2007-05-07 11:24:23 +00:00
maedhros
1d05573950
(svn r9730) -Feature: [NewGRF] Add support for miscellaneous grf feature bit 1 - paved roads on desert tiles.
2007-04-27 21:35:02 +00:00
rubidium
7577954ced
(svn r9672) -Cleanup: lots of coding style fixes around operands.
2007-04-18 22:10:36 +00:00
belugas
76faa0f759
(svn r9664) -Documentation: Doxygen corrections,errors and omissions
2007-04-17 21:09:38 +00:00
peter1138
51d72c11c8
(svn r9563) -Feature: Add more finer control to transparency options, including a new toolbar, accessible from the map menu or Ctrl X. Patch by Wolf01.
2007-04-05 07:49:04 +00:00
belugas
27311537ce
(svn r9542) -Fix(FS# 712): When checking if a vehicle is on a given tile, and you are working on the ground tile, do not take aircrafts into account, as they do not pose any danger for the construction/destruction/conversion itself. Z stuff, in other words
2007-04-01 11:11:49 +00:00
belugas
34272ad201
(svn r9523) -Cleanup: doxygen changes. Time to take care of "R"
2007-03-28 20:41:35 +00:00
celestar
44be40052f
(svn r9425) -Codechange/Fix (FS#689): Housekeeping in the convert rail functions: Changed the order of error checks to generate more meaningful error messages, added some doxygen comments and replaced bitshifting by proper mathematical operations
2007-03-24 09:12:03 +00:00
belugas
691f8578fd
(svn r9400) -Codechange: Use some more representative enum names for landscape types.
2007-03-22 03:42:43 +00:00
maedhros
94db6aa1a2
(svn r9371) -Feature: Add support for variable snow lines in the arctic climate, supplied
...
by newgrf files. When this is enabled forests cannot be built below the highest
snow line, and farms can't be built above it. Houses still use the
_opt.snow_line so they are all consistent, so to make them respect the snowline
you may want to use some newhouses features as well.
2007-03-20 13:47:00 +00:00
rubidium
36cea84b11
(svn r9068) -Codechange: capitalize the VEH_Train etc. enums to match the coding style (and rest of the code).
2007-03-08 16:27:54 +00:00
rubidium
4ca294dfff
(svn r9065) -Fix: possible dereference of NULL pointer.
2007-03-08 13:54:19 +00:00
rubidium
979ccd45ba
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
2007-03-07 12:11:48 +00:00
rubidium
b5a997a446
(svn r8935) -Codechange: unification of track type between road and rail tiles, unification of ground type between normal rail tiles and depots/waypoints and removing the need for RailTileSubType.
2007-02-27 23:36:28 +00:00
rubidium
191a739d31
(svn r8908) -Codechange: declaration of DrawBridgeMiddle does not belong in a map accessors header.
2007-02-26 18:25:03 +00:00
tron
47b677abfe
(svn r8876) -Fix
...
Replace tests with magic numbers by a simple extraction template for command parameters
2007-02-24 09:42:39 +00:00
tron
ac75cf0ae1
(svn r8875) -Fix
...
Remove unnecessary EnsureNoVehicle() checks because they are
- pointless per se (f.e. there are no vehicles on house tiles)
- done again (f.e. using CMD_LANDSCAPE_CLEAR just a few lines later)
2007-02-24 06:46:20 +00:00
rubidium
a5697946d1
(svn r8852) -Fix (r8735): make the dynamite tool for drive through road stops as if it were removing a normal road tile (consider the local authority and such).
...
-Fix (r8735): remove drive through road stops on town owned roads when going bankrupt/being removed.
2007-02-23 00:17:46 +00:00
rubidium
eb5648f382
(svn r8698) -Codechange: enumify the returns of VehicleEnterTile
2007-02-13 10:26:53 +00:00
rubidium
69d4888c29
(svn r8608) -Fix: you were unable to build roads in the scenario editor when there is no town 0, even though there are other towns.
2007-02-06 09:25:52 +00:00
peter1138
ca9843424b
(svn r8128) -Codechange: Split sprite and palette remap into separate 32 bit values.
...
This lets us increase the sprite width from 14 to up to 29 bits,
effectively nulling the old sprite limit. Table changes in next commit.
2007-01-14 19:57:49 +00:00
Darkvater
43343d640b
(svn r8102) -Cleanup: Remove unreachable code (r8096), useless cast
2007-01-13 15:55:22 +00:00
Darkvater
64f34d322d
(svn r8096) -Codechange: Invert the check if you are allowed to clear a road tile so there are not so many negations (too confusing) and added some comments to further clarify what happens.
2007-01-13 14:48:47 +00:00
rubidium
a7d0cdf95f
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
2007-01-10 18:56:51 +00:00
KUDr
07c30785ab
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
2007-01-10 18:12:09 +00:00