|
rubidium
|
r5299:1a5e005aa3e9
|
18 years ago
|
|
|
|
rubidium
|
r5298:8fdd01992c6e
|
18 years ago
|
|
(svn r7451) -Fix (7372): GetNum(Towns|Industries) should return the actual number of towns and industries. -Fix (6055): GetMax(Town|Industry)Index should not return the number of towns or industries - 1, but the size of the pool - 1.
|
|
matthijs
|
r5247:1abbd3b3cd80
|
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].
|
|
tron
|
r4976:69b6cba0a840
|
18 years ago
|
|
|
|
belugas
|
r4966:e34d63011678
|
18 years ago
|
|
|
|
belugas
|
r4965:a4c44ae0ea0f
|
18 years ago
|
|
(svn r6965) -CodeChange : Add a climate bitmask member to IndutrySpec. Removed a loop that used the array _build_industry_types for that purpose.
|
|
belugas
|
r4942:0fc66417d98b
|
18 years ago
|
|
(svn r6930) -Codechange: Move industry name into IndustrySpec -Codechange: member color_map is more related to random color, rename it as such
|
|
belugas
|
r4924:047938e059a9
|
18 years ago
|
|
(svn r6904) -CodeChange : Cleanup of industry_cmd (Step-5). Add member life_type to IndustrySpec and remove the now useless _industry_close_mode array
|
|
truelight
|
r4403:2c2ffbb59c83
|
18 years ago
|
|
(svn r6156) -Codechange: DeleteIndustry removes an industry from the pool -Codechange: DestroyIndustry is called by DeleteIndustry to remove all things where a industry depends on. Last 2 changes to prepare for new pool system. Not pretty now, will be soon.
|
|
truelight
|
r4357:4a0463b63644
|
18 years ago
|
|
(svn r6058) -Fix: Get(Industry|Town)ArraySize could never return 0 Note: _total_towns and _total_industries willb e removed soon, so this 'hack' is okay, for now ;)
|
|
truelight
|
r4356:03f88658c85b
|
18 years ago
|
|
|
|
truelight
|
r4354:95cd3ce6deea
|
18 years ago
|
|
(svn r6055) -Codechange: added GetXXXArraySize, which returns HighestID + 1 (or, will do that). It isn't the best name, but we couldn't find any better. This unifies the pool-system even more.
|
|
truelight
|
r4346:fa4ac6b6f852
|
18 years ago
|
|
(svn r6047) -Codechange: FOR_ALL now _only_ loops valid items, and skips invalid ones -Codechange: use IsValidXXX where ever possible Note: both changes to prepare for new pool system, which needs those changes. For every pool there are 2 ugly lines, which will be removed when done implementing new pool system. Based on FS #13 by blathijs, partly implemented.
|
|
rubidium
|
r4344:bff007ae1fd1
|
18 years ago
|
|
|
|
rubidium
|
r4330:1186b19da099
|
18 years ago
|
|
(svn r6005) -Cleanup: introduce IndustryID and use it -Cleanup: use TownID and StationID for two instances of uint16
|
|
truelight
|
r4328:abeae2374271
|
18 years ago
|
|
(svn r6001) -Feature: when removing a farm, his farmland is removed too (over time) (based on peter1138's patch, FS #82) To make this to work, in older games farmland is removed on load, and replanted
|
|
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.
|
|
tron
|
r4277:fd4235a66bc9
|
18 years ago
|
|
|
|
belugas
|
r3689:445f66c2333d
|
18 years ago
|
|
(svn r4614) CodeChange : Cleanup of industry_cmd (Step-4). Removing the _industry_type_costs in favor of IndustrySpec.cost_multiplier; In order to let industry_gui use the GetIndustrySpec accessor, some structs had to be moved in industry.h
|
|
belugas
|
r3499:c30aa286c5b5
|
19 years ago
|
|
|
|
belugas
|
r3496:675e7d4a3bf2
|
19 years ago
|
|
|
|
tron
|
r3350:3c52d6fd465c
|
19 years ago
|
|
|
|
Darkvater
|
r3349:9279cb44f96f
|
19 years ago
|
|
|
|
Darkvater
|
r3344:abc4ac7cb74a
|
19 years ago
|
|
|
|
tron
|
r2630:73464cd368d6
|
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
|
|
tron
|
r2186:5ee653b1b5e1
|
19 years ago
|
|
|
|
matthijs
|
r1330:62eaa061ec97
|
20 years ago
|
|
(svn r1834) - Fix: NPF does not check the owner of its target, busses try to enter other players' depots. TODO - Add: asserts to find the v->u.rail.track == 0 problem. - Add: IsValidDepot(), IsValidTown(), IsValidSign(), IsValidVehicle(), IsValidStation() - Add: GetTileOwner(), IsTileOwner() - Codechange: Replaced IsShipDepotTile(), IsTrainDepotTile(), IsRoadDepotTile() by IsTileDepotType(). - Codechange: typedeffed the MAP_OWNERS as Owner. Should be used as variable type. - Codechange: Replaced a few uint by TileIndex.
|
|
truelight
|
r1267:78c35aaf06ff
|
20 years ago
|
|
(svn r1771) -Add: Industries are now dynamic (up to 64k industries). Generating 1kx1k maps should now be much faster, and give more than just oil-stuff ;)
|
|
tron
|
r1220:b34ce821ceeb
|
20 years ago
|
|
|
|
truelight
|
r919:57ef81f1ba8e
|
20 years ago
|
|
(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 *.
|
|
truelight
|
r830:5b6fa1e7dd30
|
20 years ago
|
|
|
|
truelight
|
r0:d63b455452f6
|
20 years ago
|
|
|