truelight
f25e5e90d2
(svn r6153) -Codechange: DeleteSign removes a sign from the pool
...
-Codechange: DestroySign is called by DeleteSign to remove all things where a sign depends on.
Last 2 changes to prepare for new pool system. Not pretty now, will be soon.
2006-08-26 19:29:35 +00:00
truelight
602c0d40b3
(svn r6137) -Codechange: some very minor cleanups:
...
- Start using DeleteXXX for every pool item, not manually doing it
- Use some wrapper to improve logic
- Rewrote some pieces to improve logic
2006-08-26 14:22:54 +00:00
truelight
5fd9aeb12b
(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.
2006-08-22 20:41:26 +00:00
tron
2e0d16026b
(svn r6054) Change the sign sorter in a similar way as the other sorters: Remember a list of pointers to signs instead of a list of SignIDs - This removes a layer of indirection
...
Also make the sign list static
2006-08-22 20:39:18 +00:00
truelight
b23f719ab9
(svn r6053) -Codechange: renamed all IsXXXIndex to IsValidXXXID
...
-Codechange: IsValidXXXID now also checks if XXX is really valid, not if the number is within range
Both changes again in preperation of the new mem-pool system, which requires this.
IsValidXXXID is not a bit less pretty, but that will be cleaned up after the new mem-pool system
2006-08-22 18:15:17 +00:00
truelight
b34d77ca3f
(svn r6050) -Codechange: mass-renamed SignStruct -> Sign and ss -> si. Now functions and variables all match eachother
2006-08-22 16:38:50 +00:00
truelight
0461d89612
(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.
2006-08-22 15:33:35 +00:00
tron
c11fb56bf7
(svn r3337) Remove an unused variable and add 2 times static
2005-12-24 20:51:21 +00:00
tron
3397e202c8
(svn r3024) -Codechange: Another batch of replacements of int/uint/int16/byte/-1 with proper types and constants
2005-10-07 07:35:15 +00:00
Darkvater
8e6a911700
(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
2005-09-18 20:56:44 +00:00
tron
a227065ab7
(svn r2701) Insert Id tags into all source files
2005-07-24 14:12:37 +00:00
tron
59d4ab3752
(svn r2626) static, const, misc.
2005-07-17 20:14:58 +00:00
tron
3154e7148d
(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
2005-06-24 12:38:35 +00:00
Darkvater
21d9e2c934
(svn r2342) - Fix (Regression): _cmd_text is always valid, so test the first character for '\0'. Also for some reason I forgot to validate the p1 param so that might lead to crashes with invalid signes. Fixed as well.
2005-05-17 19:36:36 +00:00
truelight
e416fe8066
(svn r2079) -Add: signlist, shows all signs in the map. Clicking on them, and you go
...
to the sign. Very needed for coop. You can find it under World Map.
2005-03-26 21:22:29 +00:00
matthijs
c5c5c9b17c
(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.
2005-02-06 22:36:08 +00:00
truelight
4f5255c36e
(svn r1787) -Add: Dynamic signs (euh.. yeah, this means you can built 64k signs)
2005-02-04 14:45:32 +00:00
dominik
d439221c62
(svn r1667) - Feature: Signs are now shown in the color of the player who created them
...
(Note: The player information is currently not stored in savegames. Upon loading a game the signs will all be gray again)
2005-01-25 15:38:36 +00:00
tron
189ca73707
(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile
2005-01-22 20:23:18 +00:00
truelight
a243285af4
(svn r1486) -Codechange: moved all 'signs' stuff to signs.c/h and prepared it for
...
dynamic arrays
2005-01-12 11:21:28 +00:00