summaryrefslogtreecommitdiff
path: root/openttd.c
AgeCommit message (Collapse)Author
2005-11-29(svn r3245) -Add: allow OpenTTD to give his GPMI-params to the GPMI modulestruelight
2005-11-26(svn r3239) - Codechange: Introduce and use helper functions for engine ↵peter1138
replacement code.
2005-11-26(svn r3235) - Fix: fix two crashes, one with making a screenshot in the main ↵Darkvater
menu without any game loaded, another when failing to load a scenario in 'New Game'
2005-11-23(svn r3231) Fix: update the GPMI implementation to the latest GPMI-API versiontruelight
2005-11-22(svn r3229) -Add: add more GPMI support. Now GPMI-based AIs can be loaded ↵truelight
(doesn't change a thing if you didn't enable GPMI)
2005-11-22(svn r3227) -Codechange: [Savegame] removed 'minor' version, and renamed ↵truelight
'major' version to just: version.
2005-11-22(svn r3226) -Fix: GPMI implementation had minor glitchestruelight
-Fix: the AI speed control is done by the AI-core, individual AIs don't have to do it (so, AIs were delayed twice ;) -Add: Support for AI-network-clients (an AI, connecting to a remote server) -Fix: minor AI-core problems
2005-11-17(svn r3214) -Feature: openttd.cfg can now set how many autosaves to keep ↵bjarni
before starting to overwrite old ones max_autosave_num in the config files sets the number of autosaves to keep (default 16) MAX_NUM_AUTOSAVES in Makefile.config sets the default value. 16 is used if no value is given this behaviour can still be overwritten by keep_all_autosave (openttd.config setting) Note: this is a requested behaviour for PDA ports, since they got limited storage space
2005-11-16(svn r3212) - Waypoints/Depots: Store waypoint index in m2 for waypoints. ↵peter1138
This moves the ground type bits from m2 to m4 for waypoints and depots (leaving room for depot index in m2 in future), and moves the custom graphics ID to the waypoint struct. - Waypoints: Until now stat_id was saved but never assigned to. Instead we now save the GRFID/local index of the custom graphics so that GRF file changes can leave graphics intact.
2005-11-16(svn r3191) Move declaration and definition of _dbg_screen_rect to a place ↵tron
where it somewhat makes sense and wrap them in #ifdef _DEBUG
2005-11-15(svn r3186) Unnecessary casts and truncationtron
2005-11-15(svn r3185) consttron
2005-11-15(svn r3183) Remove an unused declaration and properly declare ↵tron
CheckExternalFiles() in a header
2005-11-14(svn r3181) -Bracingtron
-Indentation -Whitespace -DeMorgan's Law -Test with NULL or 0 for non-booleans -'\0' instead of 0 for chars -Remove redundantly redundant comments (like DoFoo(); // Do foo) -Join multiple short lines with a single statement -Split single lines with multiple statements -Avoid assignments in if
2005-11-13(svn r3176) Use proper types, not some variants of inttron
2005-11-13(svn r3173) Use the trinary operator and switch to improve readabilitytron
Also align short cases nicely
2005-11-09(svn r3158) - PBS: [ 1252192 ] Fix an assertion failure due to possible junk ↵peter1138
data in pre-PBS savegames. This will not correct pre-PBS savegames loaded and saved since PBS was introduced. (thanks glx)
2005-11-07(svn r3155) -Feature: [autoreplace] autoreplace can now remove cars from too ↵bjarni
long trains -Trains will now remember the length of stations it visits and sell cars when being autoreplaced if they became too long -If it needs to remove cars, then it starts from the front and sells all it can find until the train is short enough -This only works for trains, that knows the station length of the route so a full uninterrupted run is needed -a train needs 1-2 runs to detect if the shortest station is expanded -This feature can be turned on and off in the train replace window and each company can have it's own setting -NOTE: minor savegame version bump
2005-10-31(svn r3109) Replace two occurrences of '256' with TOTAL_NUM_ENGINESpeter1138
2005-10-22(svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in ↵tron
comments, excess empty lines, minor other changes nothing spectacular, just some stuff, which piled up
2005-10-17(svn r3055) Give the savegame/scenarion sort order flags symbolic namestron
2005-10-07(svn r3024) -Codechange: Another batch of replacements of ↵tron
int/uint/int16/byte/-1 with proper types and constants
2005-09-28(svn r2995) Replace 0xFF/0xFFFF with ↵tron
CT_INVALID/OWNER_SPECTATOR/INVALID_STATION where appropriate
2005-09-19(svn r2963) Fix: calculate proportions of non-square giant screenshot correctly.peter1138
2005-09-07(svn r2921) -Codechange: moved all AI-code to 1 central place (ai/ai.c)truelight
-Fix: removed the ability for the oldAI to cheat (this will criple him somewhat) -Add: base-code for many improvements to come in the AI-system -Add: added base-code for multiplayer AIs (DOES NOT WORK YET!)
2005-09-03(svn r2909) Game would hang where the autosave_on_exit was activated.Darkvater
- Updated VS.NET and VS6 project files changed AI files
2005-09-02(svn r2906) Fix some threaded saving problems. Now the thread only ↵Darkvater
interfaces with the main program through a sort of mutex. Communication uses the function OTTD_SendThreadMessage() with the approiate message which is handled in ProcessSentMessage() during the main loop.
2005-08-23(svn r2886) Rename the "owner" attribute to "m1", because when it stores an ↵tron
owner it is accessed by [GS]etOwner anyway and when it doesn't store an owner, but arbitrary data, accessing a field called "owner" is confusing.
2005-08-14(svn r2866) Move all functions and tables which aren't directly involved in ↵tron
managing the sprite heap to a new file gfxinit.c. This doesn't ease the global variable mess, but makes the distinction between sprite heap and gfx loading routines easier.
2005-08-10(svn r2848) -Fix: [ 1256044 ] fixed crash when loading a map made before rev ↵bjarni
2817 in scenario editor. This was introduced in 2817
2005-08-06(svn r2821) Remove a write-only variabletron
2005-08-06(svn r2817) -Codechange: [autoreplace]: moved autoreplace and autorenew to ↵bjarni
serverside -This means that one company can only have one setting for renew and replacing more clients will not fight due to different settings anymore -This is a needed step in the line to fix autoreplacing dualheaded locomotives NOTE: savegame revision bump (peter1138 + me in coop)
2005-08-06(svn r2814) -Fix: made MorphOS to compile againtruelight
2005-08-05(svn r2809) Implement more generic threading functions, which allow more ↵tron
than one thread
2005-07-29(svn r2754) Move str_fmt into string.[ch]tron
2005-07-29(svn r2748) Remove unused cruft from the main looptron
2005-07-26(svn r2720) Remove unused declarations and definitionstron
2005-07-26(svn r2714) Remove unnecessary includestron
2005-07-24(svn r2701) Insert Id tags into all source filestron
2005-07-23(svn r2685) -Codechange: Split the music/sound/video drivers into separate ↵tron
files and move them into subfolders. This results in shorter and hopefully easier to maintain files. Note: I had to change paths in #include statements of some unrelated files, because I added the ottd base directory to the include path (-I.)
2005-07-22(svn r2673) Include functions.h directly, not globally via openttd.htron
2005-07-22(svn r2672) Move saving/loading related declarations to saveload.htron
2005-07-20(svn r2657) -Codechange: The available railtypes per player are now a ↵celestar
bitmask, so that railtypes do not be in ascending order of appearance. Allows easier implementation or more railtypes
2005-07-17(svn r2610) - Feature: set server map name to the loaded name of the ↵Darkvater
game/scenario. Also truncate where neccessary - Feature: truncate the path of the saveload window
2005-07-17(svn r2606) -Codechange: renamed ai.c to ai_old.c, and ai.h to ai_new.h to ↵truelight
make room for a global AI-handler
2005-07-17(svn r2602) -Codechange: removed unused variable (disable_computer)truelight
-Fix: Changed some stuff to make server-side AIs possible in the far future
2005-07-16(svn r2588) Codechange: Remove PLAYER_SEED_RANDOMludde
2005-07-15(svn r2583) Move OS specific code out of misc.cludde
Added support for Mersenne Twister random number generator (not implemented in network yet) Wrap player randoms around #ifdef
2005-07-14(svn r2564) Fix: Fixed conceptual issue in network_gui.c. AllocateName is ↵ludde
not meant to be used by GUI-code, because it modifies the "game-state". Added a way to bind a C-string to an openttd string which doesn't modify the game state.
2005-07-13(svn r2560) Fix: various minor code changes.ludde
Added RandomTile/RandomTileSeed functions to generate a random tile. Changed landscape routines so they don't assume that the Y map side is a power of two. (support for this is not complete, though) Changed some frequently used map macros to not compute the values each time. Silence some warnings on MSVC.