Commit Graph

2685 Commits (6a4ba84320ae137793760b628dad23de29d0b633)
 

Author SHA1 Message Date
truelight 6a4ba84320 (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 4d2c4c5d8a (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 31f218fdf9 (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 c7f3192f6b (svn r3223) -Fix: [autoreplace] fixed crash when replacing a train engine without any cars (introduced in r3220) 19 years ago
tron f2b344084a (svn r3222) -Feature: Right-Click-Scrolling optionally moves in the opposite direction (Requested by manx) 19 years ago
miham c7683a63ce (svn r3221) [Translations] Updated to 2005-11-19 19 years ago
bjarni 24eda23b80 (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 e472fed85a (svn r3219) -Codechange: removed the now obsolite code in the build train command to make half multiheaded engines 19 years ago
bjarni 22a4679837 (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 40ec9bb123 (svn r3217) Fix issue with resizing stepped windows introduced in revision 3181. 19 years ago
Darkvater a87ff2dc88 (svn r3216) - Fix (regression): endless loop introduced in revision 3190 19 years ago
Darkvater cac9cfe249 (svn r3215) - Fix: warning on VS.NET 2003 complaining about constness reintroduced by revision 3192 19 years ago
bjarni eba1f68439 (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 3e702afc08 (svn r3213) - Codechange: Clean up handling of road stops, avoiding unnecessary use of pointers and using the *BIT() macros. 19 years ago
peter1138 754d26407e (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 5cb9de35d1 (svn r3211) Fix typo in r3181 19 years ago
truelight c1b012171d (svn r3210) -Codechange: use IsRailWaypoint where possible (instead of magicnumbers)
-Codechange: IsRailWaypoint should take 'tile', not 'm5'
19 years ago
peter1138 b739674307 (svn r3209) In TileLoop_Track(), use names based on function rather than their place in the map array. 19 years ago
tron 89cfe202b8 (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 1bffec2c27 (svn r3207) Typo in last revision 19 years ago
tron f750a773a4 (svn r3206) Wrap all instances of _dbg_screen_rect in #ifdef _DEBUG 19 years ago
tron ec57ef78a2 (svn r3205) Some more uses for GB/SB 19 years ago
tron 8cebe2f607 (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 272d63b062 (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 d177e5da67 (svn r3202) If cascade -> switch 19 years ago
tron aaed2a41a0 (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 7a7847ed61 (svn r3200) Remove the unused function GfxScalePalette() and the unused struct WorldSprite 19 years ago
tron cc61dd4890 (svn r3199) -Fix: There are only 2 possible directions for ship depots, not 4 19 years ago
tron 06a708b7b3 (svn r3198) Rewrite the company league drawing routine for better readability 19 years ago
tron d76fc8d7d1 (svn r3197) Use a better bias so you can directly see the date range a disaster can happen in 19 years ago
tron ce9cbb9c47 (svn r3196) Use structs instead of magic offsets into arrays 19 years ago
tron 8d57bfc921 (svn r3195) Use bitfields instead of explicit shifting/masking 19 years ago
tron 1806293e46 (svn r3194) Don't use FindLandscapeHeightByTile() when it's overkill 19 years ago
tron 62b2b4613f (svn r3193) Staticise the vehicle position hash 19 years ago
tron 784d41b650 (svn r3192) Split the surname list into two lists (non-toyland/toyland) and use lengthof() to get the number of names instead of using magic numbers 19 years ago
tron 1d109214bc (svn r3191) Move declaration and definition of _dbg_screen_rect to a place where it somewhat makes sense and wrap them in #ifdef _DEBUG 19 years ago
tron 3bf8d2ccbb (svn r3190) Turn some loops into canonical for loop form 19 years ago
tron 66d44766a7 (svn r3189) There's a dedicated function to check if it's a hangar tile, so use it 19 years ago
tron b5dafb8f94 (svn r3188) Use CmdFailed() to check, if a command failed, don't compare with CMD_ERROR 19 years ago
tron 24f857ed5e (svn r3187) Simplify overly complicated ifs, especially if (foo) return false; else return true; is confusing 19 years ago
tron 9f8c5d8fd2 (svn r3186) Unnecessary casts and truncation 19 years ago
tron b9729fb72e (svn r3185) const 19 years ago
tron 1b0091e0d2 (svn r3184) GB/SB 19 years ago
tron 8658560229 (svn r3183) Remove an unused declaration and properly declare CheckExternalFiles() in a header 19 years ago
tron 7b7593d092 (svn r3182) Fix braino in r3181 19 years ago
tron f7abff5f96 (svn r3181) -Bracing
-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
19 years ago
tron d8b56c123e (svn r3180) Replace some magic numbers by symbolic names 19 years ago
tron 5fa6b7eb06 (svn r3179) - RandomRange() and RandomTile() instead of home brewed versions
- CHANCE*() instead of mumbling strange numbers
19 years ago
peter1138 6124ee0974 (svn r3178) - Codechange: move static _dropdown_* vars into the window custom data, giving var1 and var2 more meaningful names. 19 years ago
tron 833032adc0 (svn r3177) GB, CLRBIT, HASBIT, TOGGLEBIT 19 years ago