tron
bec5e4fb4c
(svn r2487) Replace TILE_XY by TileXY/TileDiffXY
19 years ago
tron
3154e7148d
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
19 years ago
celestar
aa7334a3ec
(svn r2468) -Codechange: Got rid of DEREF_PLAYER and replaced it by GetPlayer
19 years ago
celestar
9b8cb17831
(svn r2441) -Feature: You can now give transfer order to set up feeder systems
19 years ago
hackykid
eb173099e9
(svn r2411) - Codechange: Have trains cache stuff like consist power/weight/max speed instead of recalculating it each time.
...
- Fix: Station ratings now depends on the max speed of a consist, without being affected by other speed limits from realistic acceleration.
19 years ago
Darkvater
b438b1248c
(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.
19 years ago
hackykid
f7dcd2e834
(svn r2390) - Codechange: Fix some warnings on GCC 4.0.0
19 years ago
Darkvater
55423efb06
(svn r2387) - CodeChange: made the saveload code more readable and also removed the 'byte' saveload arrays which means you can save an array of more than 255 elements, or bigger structs than 255 bytes. This doesn't yet solve the problem that a chunk can be a maximum of 16384 big.
...
- Fix: also fix an unnoticed error in SlSaveLoadConv() due to wrong types.
19 years ago
Darkvater
31f8f6a7b5
(svn r2301) - CodeChange: prettyify ChangeOwnerShipOfPlayerItems() a bit
...
- CodeChange: add comments to a very ugly part of the code (network_client.c); that enforces that the server gives an ID to the client.
20 years ago
Darkvater
921cc4e94a
(svn r2297) - CodeChange: server-check the next batch of commands.
...
- CodeChange: since only the server will be able to modify difficulty settings, leave the checking of correct values besides, and trust users will join legit servers.
- CodeChange: for renaming signs, only check if GetDParam(); eg _decode_parameters is empty ('\0') or not, instead of the extra check of players, etc. That basically does the same thing. Also dirty sign two times when renaming, once before, once after the action. Because if the name becomes shorter and you update only after, garbage remains on the screen.
- CodeChange: made GetMaskOfTownActions() available to the town-cmd to double-check if the action was available to the player. For this purpose the hardcoded _local_player has been removed from the function and is now passed as a parameter.
20 years ago
Darkvater
972448d5ae
(svn r2211) - Fix(ish): When eternally looping in 2090 don't go increasing the inflation anymore because it will just rise to insanely high values beyond all imagination.
20 years ago
Darkvater
13fc3271f4
(svn r2155) - Fix: Company value was $2 when value more than an int32 could handle (use max64 instead of max)
20 years ago
celestar
5d937e4a23
(svn r2138) -Fix: [ 1144154 ] The map has two dimensions, not one
20 years ago
truelight
05dbeaeba4
(svn r2065) -Fix: reverted revision 2044, because it had more negative effects than positive
20 years ago
truelight
1536c3ae5a
(svn r2044) -Fix: fix that TriggerVehicle is called from the wrong user
20 years ago
truelight
9b1e6e6d3e
(svn r2043) -Fix: committed too many files in the last commit
20 years ago
truelight
fbb11ea366
(svn r2042) -Fix: forgot to remove a printf ;)
20 years ago
truelight
ae4995c671
(svn r1920) -Fix: no longer a station where you only unload is bad for your town-rating
20 years ago
truelight
862faa16c0
(svn r1919) -Fix: Minimum profit of vehicles was calculated wrong for Performance Rating
20 years ago
tron
9efcfc65af
(svn r1911) Put back an "if" i accidently removed in r1898
20 years ago
tron
51eef8c5b7
(svn r1898) Remove some unused macros from macros.h and move some others to more appropriate headers
20 years ago
tron
0381073e56
(svn r1813) Declare functions implemented in strings.c in their own shiny new header (though i think some of these function don't belong into strings.c)
20 years ago
tron
0b8876e946
(svn r1812) [1117058] Use CT_WATER instead of CT_STEEL when accounting water which gets delivered to a town (worked because CT_STEEL and CT_WATER share the same enum number)
20 years ago
truelight
ab3ed5c431
(svn r1770) -Fix: Hopefully last pieces of code that are containing a station-id
...
(and should be an uint16, not uint8)
20 years ago
tron
7bbcf5875c
(svn r1749) Move the functions which calculate distances to map.[ch] and give the more meaningful names
20 years ago
bjarni
8e7d88c85b
(svn r1599) fix: autoreplace window now updates when inflation alters prices
...
Hackykid and not LordOfThePigs pointed out the update problem fixed in rev 1597. Sorry. Sometimes development can get too fast
20 years ago
tron
189ca73707
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
20 years ago
bjarni
2fd3553d78
(svn r1568) made an enum of train subtypes to make the code more readable
20 years ago
tron
3279a7c9a2
(svn r1520) Trim 134 (!) lines with trailing whitespace ):
20 years ago
celestar
0074496ea4
(svn r1495) -Fix: Loan does not count against the company value
...
-Feature: New companies receive a 5-year protection period
20 years ago
darkvater
29b4ab04c3
(svn r1465) -Fix: [1099101] starting year patch goes out of range. Clamped year between 1920-2090 as wel as adding defines for it.
20 years ago
darkvater
49e7939a10
(svn r1460) -Fix: [1099225] Bug Fix - Vehicle Lists not updated at Acqusition (thx tamlin and mpetrov) This also fixes some bug but can't find i right now.
20 years ago
darkvater
116789022c
(svn r1418) -Feature: [1098254] (dis)Allow Shares. Add patch options to allow buying/selling of shares (Hackykid)
20 years ago
truelight
63e97754fb
(svn r1407) -Codechange: changed a lot around _stations, _vehicles, _towns and _industries
...
(in prepare of dynamic arrays):
- DEREF_XXX is changed into GetXXX
- All direct call are directed via GetXXX
- struct Industry has now an index-field
- ENUM'd some stuff
- Replaced home built loops with FOR_ALL_XXX
- Added _stations_size, _vehicles_size, ... which gives the length of the
array (which will be dynamic in the near future)
- Changed lengtof(XXX) to _XXX_size (e.g. _stations_size)
- Removed all endof(XXX) (because mostly it was part of a FOR_ALL_XXX)
- Made the sort-functions of all 4 dynamic
- Made all 4 Initialize functions more of the same
- Some minor tab-fixing and stuff
(tnx to Tron for proof-reading my 100kb patch ;))
Note for all: please do NOT directly call _stations, _vehicles, _towns and
_industries, but use the right wrapper to access them. Thank you.
Ps: please also do not use 'v++', where v is of type Vehicle *.
20 years ago
tron
c0702318d2
(svn r1344) Use MapSize[XY]() (or MapSize()/MapMax[XY]() where appropriate) instead of TILES_[XY]
20 years ago
truelight
546fcfa3ec
(svn r1301) -Codechange: _industries finally has FOR_ALL_INDUSTRIES too
20 years ago
truelight
e6a59be8c0
(svn r1291) -Codechange: prepared subsidies and towns to become an uint16 (happens
...
after savegame bump)
20 years ago
truelight
41201f488c
(svn r1287) -Fix: reversed 1285, because it is not the solution. This also means
...
that getting a lot of money with shares is back... :(
20 years ago
truelight
a5a811f767
(svn r1285) -Fix: your loan is now substracted from your company value
20 years ago
truelight
d91326fb4a
(svn r1247) -Fix: [ 1090313 ] Shares are now also sold when a company goes bankrupt
20 years ago
dominik
e297eada07
(svn r1233) Fixed several currency issues. Now currencies should work correctly again.
20 years ago
dominik
b7f71b026d
(svn r1222) Currency cleanup. Changed some currency symbols according to forum suggestions (thx ChrisCF) and rearranged the currencies alphabetically (except for the major ones).
20 years ago
truelight
0e19f74c16
(svn r1168) -Cleanup: [Network] Cleaned the network code a bit. Added 'const'
...
and 'void' where needed, prefixed all functions, typedefs and global
vars with 'Network' and organized all externals nicely.
20 years ago
truelight
dccd3adb9b
(svn r1128) -Fix: [Network] Going bankrupt of human-players was corrupted in networkgames
20 years ago
tron
765ecfed84
(svn r1117) Move map arrays and some related macros into their own files map.c and map.h
20 years ago
truelight
967762e5ef
(svn r1086) -Fix: [Network] [ 1084774 ] Fixed quick-share-sell bug
20 years ago
truelight
2e7f669153
(svn r1061) -Fix: [Network] Compiling without ENABLE_NETWORK now works again correctly
20 years ago
truelight
397bd915a3
(svn r1023) -Fix: [Network] [ 1083692 ] You can no longer buy out a company in MP
...
because of the lag between commands (anyway, I hope)
20 years ago
tron
7c2448ecea
(svn r955) Replace uint16 for orders with struct Order
...
This adds no functionality, but is a stepping stone for future improvement (like 16bit order indices) and is easier to read.
This changes preserves binary compatibility wrt savegames.
20 years ago
truelight
b8f6d41418
(svn r942) -Merged branch/network back into the trunk
20 years ago