summaryrefslogtreecommitdiff
path: root/signs.c
AgeCommit message (Collapse)Author
2006-04-18(svn r4471) - Pools: Add a facility for calling a custom function during ↵peter1138
pool block clean up.
2006-04-10(svn r4342) Change the first two parameters of commands - virtual pixel ↵tron
coordinates of the tile to operate on - to a TileIndex Remove DoCommandByTile(), because now it does the same as DoCommand()
2006-02-20(svn r3627) - Change all hardcoded 255 max-saveload versions with the define ↵Darkvater
SL_MAX_VERSION
2005-12-24(svn r3337) Remove an unused variable and add 2 times statictron
2005-12-24(svn r3331) CMD_PLACE_SIGN doesn't use p1, so don't pass anything seemingly ↵tron
meaningful
2005-07-30(svn r2759) Remove unused #includes and filestron
2005-07-24(svn r2701) Insert Id tags into all source filestron
2005-07-22(svn r2673) Include functions.h directly, not globally via openttd.htron
2005-07-21(svn r2664) Remove depedency on player.h from variables.htron
2005-07-21(svn r2663) Include variables.h only in these files which need it, not ↵tron
globally via openttd.h
2005-06-24(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"tron
2005-06-02(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.Darkvater
2005-05-30(svn r2387) - CodeChange: made the saveload code more readable and also ↵Darkvater
removed the 'byte' saveload arrays which means you can save an array of more than 255 elements, or bigger structs than 255 bytes. This doesn't yet solve the problem that a chunk can be a maximum of 16384 big. - Fix: also fix an unnoticed error in SlSaveLoadConv() due to wrong types.
2005-05-17(svn r2342) - Fix (Regression): _cmd_text is always valid, so test the first ↵Darkvater
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(svn r2340) - Fix (Regression): [ 1203731 ] Signs don't work in multiplayer, ↵Darkvater
unwanted remains of the _decode_parameters to _cmd_text move.
2005-05-15(svn r2324) Introduce _cmd_text for passing strings with a command instead ↵tron
of abusing _decode_parameters as text buffer. This should prevent several possible buffer overruns and is a bit cleaner to use. As bonus it reduces the size of most command packets by 79 bytes.
2005-05-12(svn r2297) - CodeChange: server-check the next batch of commands.Darkvater
- CodeChange: since only the server will be able to modify difficulty settings, leave the checking of correct values besides, and trust users will join legit servers. - CodeChange: for renaming signs, only check if GetDParam(); eg _decode_parameters is empty ('\0') or not, instead of the extra check of players, etc. That basically does the same thing. Also dirty sign two times when renaming, once before, once after the action. Because if the name becomes shorter and you update only after, garbage remains on the screen. - CodeChange: made GetMaskOfTownActions() available to the town-cmd to double-check if the action was available to the player. For this purpose the hardcoded _local_player has been removed from the function and is now passed as a parameter.
2005-03-26(svn r2079) -Add: signlist, shows all signs in the map. Clicking on them, ↵truelight
and you go to the sign. Very needed for coop. You can find it under World Map.
2005-02-22(svn r1908) - Fix: [ 1149403 ] Signals dissaper after typing text and ↵Darkvater
pressing enter!. Signs in Scenario Editor have no owner so ignore that.
2005-02-06(svn r1832) Next byte -> char iteration: custom namestron
2005-02-04(svn r1787) -Add: Dynamic signs (euh.. yeah, this means you can built 64k signs)truelight
2005-01-28(svn r1705) Sign owner variable is a byte, not int32 of coursedominik
2005-01-25(svn r1673) - Codechange: Removed some redundant comments from r1667dominik
Saving the player color for signs will work right after the savegame bump
2005-01-25(svn r1667) - Feature: Signs are now shown in the color of the player who ↵dominik
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-22(svn r1594) Convert all undefined parameter lists to (void) and add the ↵tron
appropriate warning flags in the Makefile
2005-01-12(svn r1488) -Fix: fixed some spelling mistakes (tnx to Tron)truelight
-Fix: fixed some compiler-warnings
2005-01-12(svn r1486) -Codechange: moved all 'signs' stuff to signs.c/h and prepared ↵truelight
it for dynamic arrays