summaryrefslogtreecommitdiff
path: root/player_gui.c
AgeCommit message (Collapse)Author
2005-05-14(svn r2315) - Fix: [ 1187613 ] No HQ present for competitor, disable 'View ↵Darkvater
HQ' button, inspired by lucaspiller
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-05-11(svn r2290) - CodeChange: protect the next batch of commands. This brings us ↵Darkvater
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.
2005-05-06(svn r2271) CMD_SET_PLAYER_FACE, CMD_SET_PLAYER_COLOR, CMD_INCREASE_LOAN, ↵tron
CMD_DECREASE_LOAN only make sense for the current player, so don't explicitly pass a player number
2005-05-02(svn r2243) -Fix: Rework of console. Use 'help command|variable' to get help ↵Darkvater
about it. You can assign variables with =, ++, --, or just new value. Console parser is now lenient towards typed spaces, and more robust in general (at least readable). Removed the 'set' command, instead implemented all such variables as 'variables'. - Some variables are really special and cannot be assigned normally, use their callback procedure for assignment/querying. This commit also obsoletes "[1172804] Console set command cleanup"
2005-02-13(svn r1867) Include tables/sprites.h only in files which need ittron
2005-02-06(svn r1827) Next iteration of the byte -> char transition: some string ↵tron
drawing functions and buffers
2005-01-23(svn r1610) Remove trailing whitespace (last time ever, i hope)tron
2005-01-20(svn r1578) -Fix: [1102454] dedicated server crashes after some hours ↵darkvater
(highscore problems for dedicated...should be really solved now)
2005-01-19(svn r1568) made an enum of train subtypes to make the code more readablebjarni
2005-01-15(svn r1520) Trim 134 (!) lines with trailing whitespace ):tron
2005-01-15(svn r1518) -Fix: server issue where some company names were wrongdarkvater
-Fix: Highscore troubles; accessing members of deleted window
2005-01-15(svn r1516) -Cheating players do not get their names added to the highscore ↵darkvater
table/file -Fixed issue where highscore window would not come up after endgame screen -Fix: VS6 compiles once again (braindead compiler)
2005-01-14(svn r1506) Fix: [ 1102275 ] Game crashed when clicking "new face" or ↵dominik
"company color" twice
2005-01-13(svn r1502) -Fix: [1101889] Crash under windows... stupid typo in ↵darkvater
player_gui.c ^ should've been & -Fix: in multiplayer clientlist can only be opened once
2005-01-13(svn r1496) -Fix: highscore no longer crashes in network games with a ↵darkvater
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.
2005-01-11(svn r1479) -Added highscore chart (accessible from the difficulty window) ↵darkvater
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.
2005-01-07(svn r1418) -Feature: [1098254] (dis)Allow Shares. Add patch options to ↵darkvater
allow buying/selling of shares (Hackykid)
2005-01-06(svn r1404) -Fix: Company password no longer shares a widget with buying sharesdarkvater
2005-01-06(svn r1401) -Fix: glitches in train-depot GUI (tnx to Hackykid)truelight
-Fix: glitch in Company Overview GUI (Hackykid)
2005-01-04(svn r1379) -Fix: various GUI glitches. Added default sizes to various ↵darkvater
widgets. Sticky/Resize- and Scrollbar must be 11 pixels wide, Horizontal scrollbar 11 pixels high, caption must be 13 pixels. I hope I didn't forget any widgets, the game will assert for that so report them to me!
2005-01-04(svn r1374) -Feature: Add sticky item to finances window; sticky remains ↵darkvater
when requesting big/small window -Moved resize icon in save dialog to bottom-right
2005-01-03(svn r1348) -Feature: resizable windows. Read the comment in window.h to ↵truelight
find out how the system works. All useful windows are already made resizable. Enjoy :) -Fix: fixed some GUI-glitches and flaws along the way
2004-12-23(svn r1260) -Fix: [1090357] Patch for braindead MinGW compiler (luzi82)darkvater
2004-12-22(svn r1239) -Feature: Added gui option of setting company password. It can ↵darkvater
be found in the 'company information' window -Spiced up 'set company_pw' a bit, where if no pw is typed, it shows the current one. -Added a space between company name and player; looks better
2004-12-15(svn r1107) -Fix: [Network] A spectator can no longer buy/sell shares of ↵truelight
companies
2004-12-12(svn r1023) -Fix: [Network] [ 1083692 ] You can no longer buy out a company ↵truelight
in MP because of the lag between commands (anyway, I hope)
2004-12-04(svn r942) -Merged branch/network back into the trunktruelight
2004-12-02(svn r901) Small step in the process to clean up the DPARAM mess:tron
- reduce to 2 sizes (*DParam64 for 64bit values, *DParam for the rest) - use inline functions instead of macros - add assert()s to check for buffer overruns
2004-11-25(svn r815) Include strings.h only in the files which need it.tron
This should reduce the compile time after altering english.txt by about 1/3, because "only" 62 instead of 90 .c files must be recompiled.
2004-09-11(svn r201) -Fix: [1025836] Company values bigger dan int32 were put to negativetruelight
-Fix: [1025836] Long bridges had negative value -Fix: Typo in endian_check.c (Zr40)
2004-09-08(svn r187) -Feature: [1024044] Show max loan in finances window. (ledow)darkvater
-some type fixes in txt files
2004-09-07(svn r177) -Fix: padded out Widget code to solve warnings on C99 compiler (Tron)darkvater
-Fix: added WIDGETS_END macro for WWT_LAST which does this for all last widget-types
2004-09-03(svn r151) -Fix: [1021566] Buy/Sell 25% share button is brokedarkvater
2004-09-01(svn r148) -Feature: Company HQ can now be moved somewhere else (cost 1% of ↵darkvater
company value). Water floods HQ. -Some layout fixes for command.c -Tileinfo debug window in console now shows Tile in decimal numbers
2004-08-10(svn r17) -Fix Player window fixes, Getstring id0 fixes, Finances window is ↵darkvater
now ok
2004-08-10(svn r15) -Fix: loan increase/decrease showed 1 instead of 10000truelight
2004-08-10(svn r3) -[1005611] Player Window patch: When looking in dropdownlist for ↵darkvater
player stuff, it will say for all human players (Player #), not only for the first 2
2004-08-09(svn r1) Import of revision 975 of old (crashed) SVNtruelight