Commit Graph

2706 Commits (9e142209fc832603393a60390f3522c14519fe37)
 

Author SHA1 Message Date
peter1138 9e142209fc (svn r3249) Fix for issue introduced in r3228. The original code was good for raising, then for lowering, now for both. 19 years ago
peter1138 0b48a69e02 (svn r3248) - Codechange: Change interface of CanRefitTo() to supply the engine type directly instead of getting it from a vehicle. This allows the function to be used before vehicles are involved. 19 years ago
peter1138 627dd10451 (svn r3247) - Fix: "[ 1335580 ] sticky windows not sticky anymore"
Determine clicked status of sticky icon from window flags rather than the widget click state. This keeps the status in one place where it can't get out of sync.
19 years ago
truelight 708c135ff7 (svn r3246) -Fix: small glitch in ai_network_client code (network_client.c)
-Fix: make sure this glitch can never happen again (ai.c)
19 years ago
truelight 90e50e5ca9 (svn r3245) -Add: allow OpenTTD to give his GPMI-params to the GPMI modules 19 years ago
truelight 4c76c9a45a (svn r3244) -Fix: [GPMI] Even more GPMI based AI-code cleanup, bug fixes, and you can now control the AI that is going to boot 19 years ago
truelight 4624bf7f9c (svn r3243) -Fix: IncreaseLoan and DecreaseLoan were inconsistent for AIs 19 years ago
truelight 71b6f6c8aa (svn r3242) -Fix: small glitch in AllowAI control 19 years ago
peter1138 14064b223d (svn r3239) - Codechange: Introduce and use helper functions for engine replacement code. 19 years ago
truelight 29a0f76ac9 (svn r3238) -Fix: always save if you want GPMI-based AIs, this on request by
Darkvater, so we can, in the future, save patch options in savegames 
without any problems.
19 years ago
Darkvater 68c95f164e (svn r3237) - CodeChange: remove silencing of some warnings. MSVC6 once again has some issues with enums, and other things as usual, so silence those still. 19 years ago
Darkvater 43b09db5ed (svn r3236) - Fix: warnings about 'CDECL must be used with ...' on VS6 19 years ago
Darkvater af706b9ed3 (svn r3235) - Fix: fix two crashes, one with making a screenshot in the main menu without any game loaded, another when failing to load a scenario in 'New Game' 19 years ago
miham 57b4715072 (svn r3234) [Translations] Estonian is still unfinished 19 years ago
miham 83040e272d (svn r3233) [Translations] Estonian now available again 19 years ago
truelight 8315736569 (svn r3232) -Add: implemented the event-system for AIs
-Add: added several hooks (event-callbacks) for road-related-stuff
19 years ago
truelight 062d654df1 (svn r3231) Fix: update the GPMI implementation to the latest GPMI-API version 19 years ago
bjarni 97b3afe9ae (svn r3230) -Feature: [OSX] OSX builds can now change where it searches for dynamic libs and can move libs into the bundle
This is not a fix for the issues with static linking, more like a workaround. Static linking still got issues
	Apple recommends to use dynamic linking anyway, so I guess this doesn't matter much
19 years ago
truelight d9e13cef71 (svn r3229) -Add: add more GPMI support. Now GPMI-based AIs can be loaded (doesn't change a thing if you didn't enable GPMI) 19 years ago
peter1138 48855806d6 (svn r3228) - Fix: [ 1327011 ] Fix: don't lower land on tunnel, even with diag tracks on it (based on patch by glx) 19 years ago
truelight 898bb915ac (svn r3227) -Codechange: [Savegame] removed 'minor' version, and renamed 'major' version to just: version. 19 years ago
truelight e4cb8ed457 (svn r3226) -Fix: GPMI implementation had minor glitches
-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
19 years ago
peter1138 28df667ceb (svn r3225) - Fix for "[ 1359165 ] Autoreplace problem with r3171 and later" -- Move the disabled/hidden bits to custom data in window struct. 19 years ago
truelight af6fe3949b (svn r3224) -Add: Allow the NewAI to work in Multiplayer Games (switchable via patch
settings, off by defaut). An other step to AIScripts.
      WARNING: this is still highly experimental and has known bugs!
19 years ago
bjarni 0ecab5110e (svn r3223) -Fix: [autoreplace] fixed crash when replacing a train engine without any cars (introduced in r3220) 19 years ago
tron 99a918aaac (svn r3222) -Feature: Right-Click-Scrolling optionally moves in the opposite direction (Requested by manx) 19 years ago
miham 4e98419f9b (svn r3221) [Translations] Updated to 2005-11-19 19 years ago
bjarni 4392068b05 (svn r3220) -Fix: [autoreplace] Autoreplaced trains now replace their cargo to the train instead of just the new engine
This applies to wagon removal during autoreplace too
19 years ago
bjarni bc06997bbe (svn r3219) -Codechange: removed the now obsolite code in the build train command to make half multiheaded engines 19 years ago
bjarni 16e65960b9 (svn r3218) -Feature: Multiheaded train engines will now stay in the same train
This means that any user attempt to remove a rear engine will tell the user to move the front engine instead
	This fixes the assert when moving multiheaded engines (introduced in r3144)
	Note: to make old savegames use this feature, some engines might be turned around in order to link engines in pairs

-Codechange: train subtype is now a bitmask
	This allows fast access to info like if it is a wagon or engine and if it is in front and so on
	Note: savegame version bump
19 years ago
peter1138 65d9eb07a9 (svn r3217) Fix issue with resizing stepped windows introduced in revision 3181. 19 years ago
Darkvater e562fad039 (svn r3216) - Fix (regression): endless loop introduced in revision 3190 19 years ago
Darkvater 68c6e845f6 (svn r3215) - Fix: warning on VS.NET 2003 complaining about constness reintroduced by revision 3192 19 years ago
bjarni 8b4d7f97da (svn r3214) -Feature: openttd.cfg can now set how many autosaves to keep 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
19 years ago
peter1138 2a9d325930 (svn r3213) - Codechange: Clean up handling of road stops, avoiding unnecessary use of pointers and using the *BIT() macros. 19 years ago
peter1138 479a9c2e47 (svn r3212) - Waypoints/Depots: Store waypoint index in m2 for waypoints. 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.
19 years ago
tron ea1921d2e0 (svn r3211) Fix typo in r3181 19 years ago
truelight cd1ad24723 (svn r3210) -Codechange: use IsRailWaypoint where possible (instead of magicnumbers)
-Codechange: IsRailWaypoint should take 'tile', not 'm5'
19 years ago
peter1138 a56ffc6a0f (svn r3209) In TileLoop_Track(), use names based on function rather than their place in the map array. 19 years ago
tron 96dea28eae (svn r3208) Don't explicitly pass the engine type to look for to GetRearEngine(), because it's the engine type of the vehicle which gets passed as first parameter 19 years ago
tron 5cceeaa37f (svn r3207) Typo in last revision 19 years ago
tron 7d750783af (svn r3206) Wrap all instances of _dbg_screen_rect in #ifdef _DEBUG 19 years ago
tron ef7fb8b515 (svn r3205) Some more uses for GB/SB 19 years ago
tron d09db07ca1 (svn r3204) Make handling of clicking on vehicles a bit less ugly by avoiding function declarations in .c files and unnecessary indirection 19 years ago
tron 7b69def47a (svn r3203) Directly use the currency symbols for pounds and yen in the language files like it's already done for dollar and euro 19 years ago
tron 3c0179dd07 (svn r3202) If cascade -> switch 19 years ago
tron 2001577f8f (svn r3201) -Fix: Allow bribing up to the maximum rating for bribing, don't disable this option at some arbitrary value early 19 years ago
tron 6f82be949f (svn r3200) Remove the unused function GfxScalePalette() and the unused struct WorldSprite 19 years ago
tron e26b1ded99 (svn r3199) -Fix: There are only 2 possible directions for ship depots, not 4 19 years ago
tron 839cb586a7 (svn r3198) Rewrite the company league drawing routine for better readability 19 years ago