tron
94c6bdfdaf
(svn r1509) Const correctness and add static where appropriate while touching the lines anyway
2005-01-14 19:44:42 +00:00
tron
589215c822
(svn r1508) Remove duplicate declarations and include proper headers where necessary
2005-01-14 19:41:24 +00:00
truelight
16502241c6
(svn r1488) -Fix: fixed some spelling mistakes (tnx to Tron)
...
-Fix: fixed some compiler-warnings
2005-01-12 11:54:51 +00:00
truelight
97dd511971
(svn r1486) -Codechange: moved all 'signs' stuff to signs.c/h and prepared it for
...
dynamic arrays
2005-01-12 11:21:28 +00:00
darkvater
199a77d1ea
(svn r1479) -Added highscore chart (accessible from the difficulty window) with top5 companies for a given difficulty (select the difficulty in the menu)
...
-Added endgame score on 1 jan 2051 where you are added to the highscore if sufficiently large points have been accumulated. Game is paused while
-These values are saved in hs.dat; added read/write functions for it
-Added code to delete all windows to show charts. There is one issue left: somehow a news-gui pops up in front of the the chart at the end of the game.
2005-01-11 00:54:06 +00:00
dominik
49a08e5e38
(svn r1453) Feature: MD5 hash check for TTD files
...
The original TTD files are now checked with a MD5 sum to determine which version of the grf files is used and to warn about possible file corruptions. (Thanks to ledow for the original patch)
2005-01-10 01:14:26 +00:00
tron
4450ff105c
(svn r1451) Fix some of the signed/unsigned comparison warnings
2005-01-09 21:25:44 +00:00
celestar
5bc8829167
(svn r1440) -Feature: Allows more flexible airport layouts now, as the number of
...
terminals in every group can be freely chosen
-Codechange: AT_OILRIG is now 15, so that new airports can be added
easily.
2005-01-09 08:49:40 +00:00
truelight
141f85eed4
(svn r1430) -Fix: starting openttd with -g <invalid_name> now acts normal
2005-01-08 15:26:58 +00:00
dominik
c1757a0c5f
(svn r1417) Fix: The invisible tiles on the southern border are now converted to class MP_VOID when an old map (with wrong classified invisible tiles) is loaded.
...
I bumped the minor savegame version for that, even though it's not really necessary. We're not gonna run out of minor savegame versions anyway though. ;)
2005-01-07 18:13:56 +00:00
tron
3b18fba385
(svn r1409) Simplify some preprocessor magic
2005-01-07 08:07:24 +00:00
truelight
b450603437
(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 *.
2005-01-06 22:31:58 +00:00
darkvater
c9a4a265b7
(svn r1346) -Fix: fix signed/unsigned warnings
...
-Fix: latent removal of 2 lines from ttd.c which I forgot because the file was not saved :O
2005-01-03 19:09:45 +00:00
tron
bcff0ab932
(svn r1344) Use MapSize[XY]() (or MapSize()/MapMax[XY]() where appropriate) instead of TILES_[XY]
2005-01-03 18:59:58 +00:00
darkvater
dc3a478533
(svn r1342) -Fix: [1094596] Problem with ship depot; upon load it is also given owner OWNER_WATER
2005-01-03 18:40:41 +00:00
darkvater
920b9eab9d
(svn r1338) -Fix: fix signed/unsigned warnings introduced when ditching the macros for map querying.
2005-01-03 14:07:49 +00:00
tron
181e9b6cf9
(svn r1337) Use MapMax[XY]() (or MapSize[XY]() if appropriate) instead of TILE_MAX_[XY]
...
While here replace one erroneous TILE_MAX_X with MapMaxY()
2005-01-03 12:56:22 +00:00
tron
85e6b834c8
(svn r1329) Remove unused function declaration
2005-01-03 08:34:54 +00:00
truelight
25752eabfe
(svn r1321) -Fix: Revision 1302 partly solved the problem and created an other.
...
Should now really be solved.. now only MP_WATER is owned by OWNER_WATER
2005-01-01 19:18:48 +00:00
truelight
31ac922166
(svn r1302) -Fix: [ 1091655 ] In some older maps somehow water is owned by
...
OWNER_NONE instead of OWNER_WATER.
-Fix: On InitializeLandscape the map was made MP_WATER, but OWNER_NONE.
When ConvertGroundTilesIntoWaterTiles() is not called, this gives big
problems (see above). Now the owner is set to OWNER_WATER by default.
2004-12-30 10:29:28 +00:00
truelight
e6d83cdf3b
(svn r1272) -Fix: game compiles again with network disabled
2004-12-24 00:13:32 +00:00
truelight
c19b04efe8
(svn r1265) -Fix: the server can also no longer use the money cheat if the
...
advertise-mode is active
2004-12-23 21:58:01 +00:00
darkvater
5eeb971de0
(svn r1240) -Fix: OpenTTD once again compiles if ENABLE_NETWORK is disabled.
...
-Fix: removed some warnings
-Enabled ENABLE_NETWORK on windows again which I accidentally commented out.
2004-12-23 00:24:44 +00:00
bjarni
a92dc63ec9
(svn r1236) MorphOS: added make release like in OSX (tokai)
...
MorphOS: cleaned up the code telling the difference between AmigaOS and MorphOS (tokai)
2004-12-22 21:12:36 +00:00
dominik
675a44b67f
(svn r1233) Fixed several currency issues. Now currencies should work correctly again.
2004-12-22 19:48:27 +00:00
dominik
13eba00152
(svn r1222) Currency cleanup. Changed some currency symbols according to forum suggestions (thx ChrisCF) and rearranged the currencies alphabetically (except for the major ones).
2004-12-22 16:54:55 +00:00
dominik
209e2624c7
(svn r1218) Fix: Autosaves go to the correct folder again with keep_all_autosave enabled
2004-12-22 15:32:50 +00:00
truelight
92b329bc14
(svn r1154) -Add: [Network] Forked dedicated server (start openttd with -Df) (GeniusDex)
2004-12-18 14:19:21 +00:00
tron
a148ff4e0d
(svn r1117) Move map arrays and some related macros into their own files map.c and map.h
2004-12-15 22:18:54 +00:00
darkvater
c21659ae7e
(svn r1093) -Fix: Hopefully fixed windows revision issues once and for all. Removed globalness of _openttd_revision and put all such ifdefs into one place. If server has a revision only the same revisions can join; if the server has no revision everyone can join. I reckon this should be a server-side option to allow people to join or not to join.
2004-12-15 00:31:08 +00:00
truelight
b0fa342aaa
(svn r1090) -Fix: Made the _openttd_revision variable global, and with that
...
hopefully killed the windows-revision problem. If WITH_REV is defined,
for both Windows as *nix system _openttd_revision is filled with normal
info, else _openttd_revision is set to 'norev000'
-Fix: Small possible server-crash
2004-12-14 20:27:00 +00:00
dominik
0bb5428b26
(svn r1077) Implements scripts/autoexec.scr to get executed on game starting (sign_de)
...
- %! allows to merge alias parameters
- \% allows to use % in alias strings
- "alias" command now overwrites the old alias list entry
2004-12-13 22:13:02 +00:00
truelight
82f89899ea
(svn r1061) -Fix: [Network] Compiling without ENABLE_NETWORK now works again correctly
2004-12-13 17:58:53 +00:00
dominik
6e99d2c0e8
(svn r1038) Feature: OpenTTD runs with the grf files of the DOS version
...
Please read the Readme for further information. There are some minor graphical glitches when you use the DOS files. E.g. the autorail button is a bit screwed up.
2004-12-12 20:36:24 +00:00
bjarni
155c9d235f
(svn r970) Added 2nd data path for all non-windows OSes
...
added completely customizable lang path (all non-Windows OSes)
2004-12-07 17:16:57 +00:00
darkvater
5b18e2328a
(svn r959) -Fix: fix previous typo for workaround of braindead MSVC6 (Tron)
...
-Fix: added debug code to autosave cause it is buggy in multiplayer (does not remember settings; takes them from _opt instead of _new_opt (or vice versa)).
2004-12-05 20:02:49 +00:00
truelight
d6a1f3e412
(svn r942) -Merged branch/network back into the trunk
2004-12-04 17:54:56 +00:00
tron
265ac67183
(svn r901) Small step in the process to clean up the DPARAM mess:
...
- reduce to 2 sizes (*DParam64 for 64bit values, *DParam for the rest)
- use inline functions instead of macros
- add assert()s to check for buffer overruns
2004-12-02 22:53:07 +00:00
tron
acbd1801c7
(svn r815) Include strings.h only in the files which need it.
...
This should reduce the compile time after altering english.txt by about 1/3, because "only" 62 instead of 90 .c files must be recompiled.
2004-11-25 10:47:30 +00:00
tron
e8537f5512
(svn r787) Invert the sense of the DO_TRANS_BUILDINGS flag to be consistent with its own name and all other DO_* flags.
...
Now it is active-true.
2004-11-23 22:36:11 +00:00
truelight
32f69dab0e
(svn r702) -Fix: Buffer overflow in music/sound/video-driver-parameter (Oskar_)
2004-11-20 11:15:31 +00:00
tron
450c669eb2
(svn r631) Merge r440, r444, r485, r630 to trunk:
...
r440
Move screenshot function declarations to new file screenshot.h
Clean up screenshot.c a bit, mostly whitespace, alloca() -> malloc() and checking return values
r485
Remove unused field from struct ScreenshotFormat
2004-11-15 19:25:59 +00:00
tron
249a170ace
(svn r607) -Patch: [ 985102 ] static cleanup
...
Thanks to lvoge
2004-11-14 19:44:06 +00:00
darkvater
67f385ded8
(svn r316) -Fix: not +7 (Tron)
2004-09-23 21:44:36 +00:00
darkvater
cee5cd6cc7
(svn r315) -Fix: starting with -r option allows all resolutions (including 666x666) (t r o n)
2004-09-23 21:39:55 +00:00
dominik
be726e5ec4
(svn r301) Fix: game options (like drive side) are not taken from the scenario when using 'new game' command
2004-09-19 23:05:09 +00:00
signde
bb2f8d8d1a
(svn r240) -Fix: desync on subsidy generation
...
-Fix: sometimes commands got executed to early on some clients
-Feature: universal event packets for transmitting subsidys
2004-09-13 22:49:11 +00:00
darkvater
989ed101bc
(svn r224) -Fix: Music now finally works on WinXP. DirectMusic is now default for an OS >= WinNT4 (WinNT4, Win2k, WinXP), and MIDI driver for lower OS's (Win95, Win98, WinME, etc).
2004-09-12 22:03:14 +00:00
darkvater
e295e46e3e
(svn r223) -Fix: Const correctness and miscellaneous fixes. Thank you Tron for your diligent fixing of warnings (and some possibly bugs) (Tron)
...
-CodeLayout: Remove trailing spaces and Windows linebreaks
2004-09-12 21:49:38 +00:00
darkvater
99687cf513
(svn r214) -Feature: CMD_NET_INSTANT [just in time command handling over network] (sign_de)
...
-Fix: Only server can pause in network, action disabled for clients
-Fix: Direct Connect editbox can handle up to max ~35 characters
2004-09-12 15:29:37 +00:00
signde
34ecc0d778
(svn r209) -Fix: network code based desync
...
-Feature: framesync packets to hold the clients framecount near the servers
-Fix: command queue now aligns the commands to be processed right after an sync or framesync packet
-Fix: added stubs for compiling without network
2004-09-11 22:10:31 +00:00
signde
1fb915df69
(svn r207) -Codechange: randomizer handling
...
-Fix: desync problem fixes
-Fix: server doesnt hang anymore when a client timed out
-Feature: low latency connection enhancements [*net_sync_freq, *net_ready_ahead]
2004-09-11 19:34:11 +00:00
truelight
eb49a19460
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
2004-09-10 19:02:27 +00:00
truelight
157e90b49f
(svn r186) -Add: debug 'net' for network debug (sign_de)
...
-Fix: desync problem (server was not waiting for clients) (sign_de)
2004-09-08 19:20:46 +00:00
darkvater
9a6870fcfd
(svn r173) -Network: [1023231] Debug Code + ErrorBoxes + Load Game/Scenario. Added some more desync debug code and replaced some of the error() calls with some better error boxes. Hopefully find desyncs easier (sign_de)
...
-GUI: Change some network GUI stuff (Darkvater)
2004-09-06 22:46:02 +00:00
darkvater
78b64ed192
(svn r169) -Fix: move around sort-widgets a bit so it looks more natural
...
-Fix: savegames are sorted with newest date first by default
-Codechange: refine sorter functions
-Fix: fixed linux warnings (tokai)
2004-09-06 21:20:01 +00:00
darkvater
4fec362b32
(svn r153) -Feature: [1009710] Extra Viewport. In the minimap dropdown menu, open a new viewport to have a quick look at your favorite map-positions. Independent zoom and quick jump to/from viewport (Dribbel)
2004-09-03 19:59:05 +00:00
truelight
ebbfaced67
(svn r140) -Fix: Load Scenario fix
2004-08-25 10:17:39 +00:00
dominik
7701b0a241
(svn r137) Fix: console sometime didn't open (sign_de)
2004-08-25 08:55:53 +00:00
dominik
e2f627a22e
(svn r127) New feature: ingame console. (sign_de)
...
Press tab to open the console, more info in docs/console.txt
2004-08-24 08:34:28 +00:00
dominik
74852c4652
(svn r124) Prepared code for removal of block_months variable in next major savegame version
2004-08-23 21:29:25 +00:00
dominik
770f86bbbe
(svn r122) Change: exclusive transport rights are now stored per town instead of per station
...
Exclusive rights from old savegames will be reset.
2004-08-23 21:04:39 +00:00
dominik
a6f2257600
(svn r117) Feature: Performance details window in company league menu (TrueLight)
2004-08-23 10:59:03 +00:00
dominik
cce45b44d8
(svn r116) Fix: [ 963056 ] Wrong trains you can buy with scenarios
2004-08-23 08:59:36 +00:00
dominik
0bd907e88d
(svn r106) New network core (by sign_de)
...
Features:
* network core is dynamicly loaded when needed (-n isn't needed anymore)
for easy switching between single and multiplayer. But commandline
shortcuts are still enabled:
-n = autodetect network server
-n [ip] = connect to the server
* udp now uses 2 different ports
- you can run 1 server and serveral clients on one pc
- the clients udp-socket gets unloaded when the
network game starts
- the servers udp-sockets remains online to allow the
network gui to detect itself
* new gameinfo structure
this struct is available for every online/lan game
* dynamic NetworkGameList
2004-08-22 10:23:37 +00:00
truelight
e1eef24ed7
(svn r97) -Fix: two non-AI players when loading a scenario
2004-08-20 17:28:49 +00:00
truelight
788ace088d
(svn r85) -Add: initial commit of new AI (enable in Patch menu)
...
-Add: generalised A* Algorithm
-Add: generalised queues (Fifo, Stack, InsSort, BinaryHeap)
2004-08-20 09:32:32 +00:00
darkvater
255a1ad941
(svn r68) -Fix: [1009621] build in pause is now a cheat instead of a patch (truesatan)
...
-Fix: Placing/editing signs signs is possible in paused mode
2004-08-16 18:46:54 +00:00
darkvater
68c9b7c3ad
(svn r66) -Fix Station list updated on station deletion/station rename
...
-Changed debug messages to comply with DEBUG(name, level) heuristics
2004-08-16 14:48:35 +00:00
dominik
6c87ef6c65
(svn r9) Fixed a couple of warnings and minor coding issues
2004-08-10 16:34:01 +00:00
darkvater
804f038594
(svn r2) -Fix [993829] UDP Fixes (lucaspiller)
...
-Fix change 255/0xFF to OWNER_SPECTATOR for
spectator stuff (TrueLight)
2004-08-10 14:14:00 +00:00
truelight
efaeb275f7
(svn r1) Import of revision 975 of old (crashed) SVN
2004-08-09 17:04:08 +00:00