|
rubidium
|
r5376:226f4edfd4b1
|
18 years ago
|
|
|
|
matthijs
|
r5216:bdd3aa57475e
|
18 years ago
|
|
(svn r7331) - Codechange: Rename all memory pool macro's and types to "old pool", so the new pool implementation can be committed alongside it. - Codechange: Rename pool.[ch] to oldpool.[ch].
|
|
bjarni
|
r5077:d84dfecd5f73
|
18 years ago
|
|
(svn r7138) -Fix: [vehicle list windows] fixed a rare crash where having some (not all) vehicle list windows open for a player, that goes bankrupt would crash the game -Codechange: closing all windows for a player will now loop all windows and close those, which got the player as caption instead of having a list of windows to close
|
|
Darkvater
|
r4878:45022b37ea6a
|
18 years ago
|
|
(svn r6814) -Codechange: For network games ci->client_playas was always p->index + 1. To correctly handle this ci->client_playas - 1 was used all over the code making it pretty confusing at times. Use proper one-on-one values now. Special handling is only needed for user-output to not to confuse users.
|
|
Darkvater
|
r4861:3fd923d44458
|
18 years ago
|
|
(svn r6787) -Codechange: Use PLAYER_NEW_COMPANY as a player identifier wishing to become a new player instead of a 0.
|
|
Darkvater
|
r4850:7a78073de588
|
18 years ago
|
|
(svn r6776) -Codechange: Use IsValidPlayer() function to determine of a PlayerID is an actual playable player (< MAX_PLAYERS) or not.
|
|
Darkvater
|
r4849:41dc3967353a
|
18 years ago
|
|
(svn r6775) -Codechange: Use some more proper types, especially Owner and PlayerID as these are used intermixed often.
|
|
Darkvater
|
r4848:23347d73ba8f
|
18 years ago
|
|
(svn r6774) -Codechange: Rename the badly named OWNER_SPECTATOR to PLAYER_SPECTATOR and put it into player.h where it belongs (instead of map.h)
|
|
Darkvater
|
r4845:2200ed004c20
|
18 years ago
|
|
(svn r6771) -Codechange: Replace two macros with functions. IS_HUMAN_PLAYER and IS_INTERACTIVE_PLAYER
|
|
Darkvater
|
r4824:f75e6f5f61e7
|
18 years ago
|
|
|
|
peter1138
|
r4603:3b159d0db197
|
18 years ago
|
|
|
|
bjarni
|
r4574:26f71b3f860b
|
18 years ago
|
|
(svn r6424) -Codechange: [autoreplace] removed a loop though all vehicles from each time the window is redrawn To do this, the player struct contains an array, that contains the count of each engine type that the player owns Those arrays are updated each time a vehicle is build or deleted and is calculated on load (it's not saved) It's possible to access the arrays outside of the autoreplace GUI, so feel free to read from them in other patches as well
|
|
rubidium
|
r4549:76b9213799ac
|
18 years ago
|
|
(svn r6381) -Cleanup: make the '/* */' comments that span multiple lines more uniform. -Cleanup: whitespace alignment of a few tables.
|
|
tron
|
r4428:bd332de32ae3
|
18 years ago
|
|
|
|
rubidium
|
r4344:bff007ae1fd1
|
18 years ago
|
|
|
|
rubidium
|
r4326:7102aa7f4fb2
|
18 years ago
|
|
(svn r5999) -Feature: change the original date format to a 32 bits format based at the year 0. The game date subsystem now allows someone to start in the year 0 and continue up to the year 5 000 000. However, you currently cannot build anything before 1920 as there is no newgrf support for dates before 1920 or after 2090 yet.
|
|
rubidium
|
r4289:b392a03b3ca3
|
18 years ago
|
|
|
|
tron
|
r4077:259c4c4aacad
|
18 years ago
|
|
|
|
celestar
|
r3355:881cb92af87e
|
19 years ago
|
|
|
|
Darkvater
|
r3345:e48ac6e0984a
|
19 years ago
|
|
|
|
Darkvater
|
r3344:abc4ac7cb74a
|
19 years ago
|
|
|
|
tron
|
r2952:e97f823d2dbe
|
19 years ago
|
|
|
|
Darkvater
|
r2944:25bed4e89f1d
|
19 years ago
|
|
|
|
peter1138
|
r2848:ae67043fa1f1
|
19 years ago
|
|
(svn r3396) - Autoreplace changes: - Change fixed array per player to a single pool. This avoids future problems with vehicle numbers and decreases savegame size. Engine replacements from previous savegames will be lost. - Move engine replacement code from players.c to engine.c. (thanks to blathijs for rewriting this)
|
|
tron
|
r2817:7ad46034031f
|
19 years ago
|
|
|
|
peter1138
|
r2697:3bb79206c43f
|
19 years ago
|
|
|
|
bjarni
|
r2617:c039ce1e1eeb
|
19 years ago
|
|
(svn r3155) -Feature: [autoreplace] autoreplace can now remove cars from too 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
|
|
Darkvater
|
r2613:1cc6f9a802f3
|
19 years ago
|
|
(svn r3151) - Fix: showing the highscore might crash the game with an invalid string message in the case when a highscore file was used before certain strings were added. - Codechange: protect _endgame_perf_titles from out-of-bounds access.
|
|
peter1138
|
r2573:4469b4854811
|
19 years ago
|
|
|
|
tron
|
r2544:8113f47d11ba
|
19 years ago
|
|
(svn r3073) int/byte -> EngineID/PlayerID/VehicleID 0/-1 -> INVALID_ENGINE 0x10 -> OWNER_NONE
|
|
tron
|
r2525:1c51bf50cdea
|
19 years ago
|
|
|
|
tron
|
r2520:1767662fb229
|
19 years ago
|
|
|
|
tron
|
r2475:8ceca0de932b
|
19 years ago
|
|
(svn r3001) s/Player*/const Player*/ s/byte/PlayerID/ s/int/PlayerID/ and related changes
|
|
tron
|
r2447:b3b79e50b0f5
|
19 years ago
|
|
|
|
Darkvater
|
r2436:963efe8b84cc
|
19 years ago
|
|
(svn r2962) - const correctness for all Get* functions and most Draw* functions that don't change their pointer parameters - change a lot of byte player types to PlayerID - beautify header files, same "#endif /* filename */" ending
|
|
Darkvater
|
r2425:5e48f18c7157
|
19 years ago
|
|
(svn r2951) - Fix: [ 1259345 ] Changing engine in netgame opens train window for everyone - Add IsLocalPlayer() which substitutes _local_player == _current_player
|
|
bjarni
|
r2293:b55e49a164c0
|
19 years ago
|
|
(svn r2817) -Codechange: [autoreplace]: moved autoreplace and autorenew to 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)
|
|
tron
|
r2186:5ee653b1b5e1
|
19 years ago
|
|
|
|
tron
|
r2159:2c706fe6b0a7
|
19 years ago
|
|
|
|
tron
|
r2154:83cf5a3d6634
|
19 years ago
|
|
|
|
celestar
|
r2147:d338acdbdc70
|
19 years ago
|
|
(svn r2657) -Codechange: The available railtypes per player are now a bitmask, so that railtypes do not be in ascending order of appearance. Allows easier implementation or more railtypes
|
|
tron
|
r1977:1f8b99c96041
|
19 years ago
|
|
|
|
celestar
|
r1962:cc4c06e3f6b5
|
19 years ago
|
|
|
|
Darkvater
|
r1786:f4dff9cc496a
|
19 years ago
|
|
(svn r2290) - CodeChange: protect the next batch of commands. This brings us to a total of 61, which is 53% :) - CodeChange: To correctly accept engine-prototypes, the best-player checking has been moved to its own function, I hope it functions the same as before. - CodeChange: Added symbolic types of PlayerID, OrderID and EngineID. For engines also added GetEngine() and IsEngineIndex(), similar to the other such functions. - CodeChange: To correctly build industries, some tables have been moved to build_industry.h. The only way to find out currently if an industry is valid in a climate is by looping all industries and checking if it matches. Also to comply with the patch setting build_rawmaterial_industries, it is assumed that these industries do not accept any cargo of any type. This can and probably should changed in the future to some flag in their struct. Also use _opt_ptr instead of _opt. - CodeChange: implemented the HQ checking code inspired by MarkR2 in "[ 1190944 ] Many commands not checked for security". Unfortunately it is impossible to prevent only deleting a HQ by a modified client atm. - CodeChange: For insert order and modify order their parameters are implicitely truncated to 8 bits, instead of the 16 bits said in the comments.
|
|
tron
|
r1767:1d580c3ce8dc
|
19 years ago
|
|
|
|
pasky
|
r1576:0756b26ee068
|
20 years ago
|
|
(svn r2080) - Fix: [OldAI] p->ai.state_counter was uint16 but could hold a tile index, therefore overflowing - changed that to uint32 and bumped the savegame revision to 32. It *MIGHT* close bug 1151374 - it certainly caused AI to stop building anything sometimes. - While at it, use TileIndex as the tile index type in AiRemovePlayerRailOrRoad() and AiStateRemoveTrack(). - Make the number of tiles scanned 4*MapSizeX() instead of 1000. It *MIGHT* close bug 1116614.
|
|
darkvater
|
r998:60ce1309b99c
|
20 years ago
|
|
(svn r1496) -Fix: highscore no longer crashes in network games with a dedicated server. At the end of the game (can only be set by the server) the highscore is shown for the top5 companies of that game -Fix: fixed some compiler warnings -Added PF_NETWORK_ONLY flag to settings. Such a setting can only be modified in a network game.
|
|
truelight
|
r990:5dd44ae69bf5
|
20 years ago
|
|
(svn r1488) -Fix: fixed some spelling mistakes (tnx to Tron) -Fix: fixed some compiler-warnings
|
|
darkvater
|
r983:9c58202c20d1
|
20 years ago
|
|
(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.
|
|
miham
|
r826:aad8f888bce1
|
20 years ago
|
|
|
|
truelight
|
r200:f379a875a5a7
|
20 years ago
|
|
(svn r201) -Fix: [1025836] Company values bigger dan int32 were put to negative -Fix: [1025836] Long bridges had negative value -Fix: Typo in endian_check.c (Zr40)
|
|
darkvater
|
r147:612ed080a7f6
|
20 years ago
|
|
(svn r148) -Feature: Company HQ can now be moved somewhere else (cost 1% of company value). Water floods HQ. -Some layout fixes for command.c -Tileinfo debug window in console now shows Tile in decimal numbers
|
|
truelight
|
r145:aa49d6d40864
|
20 years ago
|
|
(svn r146) -Fix [AI]: Tunnel/bridge bug -Fix [AI]: Minor problems -Add [AI]: Profit check (if not making enough money, vehicles are sold)
|
|
truelight
|
r84:ffa541707cbb
|
20 years ago
|
|
(svn r85) -Add: initial commit of new AI (enable in Patch menu) -Add: generalised A* Algorithm -Add: generalised queues (Fifo, Stack, InsSort, BinaryHeap)
|
|
truelight
|
r0:d63b455452f6
|
20 years ago
|
|
|