truelight
69b1d97c03
(svn r11382) -Codechange: renamed COUNTBITS to CountBits, as it is no longer a macro (skidd13)
2007-11-04 22:47:34 +00:00
truelight
71ba45cdfb
(svn r11369) -Codechange [FS#1390]: changes some int to int8 in macros.h, as they describe a bit-position, which fits perfectly in an int8 (max 64) (skidd13)
...
-Codechange [FS#1390]: added consts in macros.h functions, so compilers can optimise better (skidd13)
-Codechange [FS#1390]: remove HAS_SINGLE_BIT, as COUNTBITS does the same (skidd13)
2007-11-02 16:57:52 +00:00
rubidium
8212088c03
(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
95f2181a1d
(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
675a826601
(svn r11265) -Feature: Make more advanced rail types more expensive to build.
2007-10-14 21:20:12 +00:00
rubidium
a88d0a88b8
(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
7788c04b78
(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
01edaeec57
(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
7d325672eb
(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
fef64185b8
(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
91a49cee55
(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
c25655d4ae
(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
56ab253307
(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
b284b5fa92
(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
cb7eaff353
(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
b169fceabc
(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
2bff32afb0
(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
549450d31a
(svn r10758) -Codechange: make the depot struct use the pool item class as super class.
2007-08-02 22:33:53 +00:00
rubidium
7fb3f54584
(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
b0f2653eb8
(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
d624f66c79
(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
02ab86631e
(svn r10696) -Codechange: remove duplication of the "make sprite transparent" code.
2007-07-26 14:07:11 +00:00
rubidium
d031da78d8
(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
efc7fdf2fd
(svn r10587) -Codechange: move the string/dparam related stuff from variables.h to strings.h
2007-07-16 09:16:58 +00:00
rubidium
255102d223
(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
b11bf3e157
(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
e51a513eb8
(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
49220cc6f1
(svn r10205) -Codechange: refactor returning of cost, so it can be more easily modified.
2007-06-18 19:53:50 +00:00
rubidium
b09431478d
(svn r10200) -Codechange: add "shortcut" for !CmdFailed (CmdSucceeded).
2007-06-18 16:42:40 +00:00
rubidium
966e2738b9
(svn r10197) -Codechange: replace int32 with CommandCost where appropriate.
2007-06-18 10:48:15 +00:00
maedhros
3e326085fa
(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
770d7188ac
(svn r10053) -Fix: could not clear a level-crossing tile with tram tracks.
2007-06-07 08:58:21 +00:00
rubidium
01f80cf343
(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
253aa1b0b0
(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
52f612d711
(svn r9996) -Fix: be more strict when building/upgrading roads and/or road stops.
2007-05-31 07:34:40 +00:00
rubidium
2db0d81cc1
(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
a31e944149
(svn r9986) -Fix (r9934): flooding towns could not remove tram tracks (boekabart).
2007-05-30 13:16:45 +00:00
rubidium
66c23060e2
(svn r9964) -Fix: removing of road should not be free of charge.
2007-05-28 19:26:32 +00:00
maedhros
21454957b5
(svn r9955) -Codechange: Make _roadveh_enter_depot_unk0 slightly less mysterious.
2007-05-27 09:17:30 +00:00
glx
8c9b4ee548
(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
c69458d894
(svn r9949) -Fix: (road) depots got deowned on bankrupts.
2007-05-26 23:18:42 +00:00
rubidium
35f1299d40
(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
7088cedb7a
(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
997901189f
(svn r9946) -Fix: more places that weren't correctly marked dirty...
2007-05-26 22:01:49 +00:00
rubidium
54d7cb8f7c
(svn r9945) -Fix: bridges were not properly marked dirty when adding/removing roadtypes.
2007-05-26 21:45:16 +00:00
rubidium
0e07a938b7
(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
016e651ffd
(svn r9942) -Fix [FS#804]: crash when upgrading both ends of a bridge.
2007-05-26 20:52:23 +00:00
rubidium
04f9b1ab61
(svn r9934) -Fix (r9923): towns could remove 'half' tram tracks.
2007-05-26 13:00:52 +00:00
rubidium
78be11be40
(svn r9931) -Fix: some glitches with catenary and bridges.
2007-05-26 10:40:34 +00:00
rubidium
ceae5eaeba
(svn r9929) -Fix [FS#803]: fix several drawing issues.
2007-05-26 07:58:49 +00:00