tron
fea5965679
(svn r2324) Introduce _cmd_text for passing strings with a command instead 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-15 18:50:55 +00:00
tron
0375f30336
(svn r2323) Remove unused dereferencing
2005-05-15 18:43:36 +00:00
tron
6cd410afbb
(svn r2323) Remove unused dereferencing
2005-05-15 18:43:36 +00:00
Darkvater
33bb043fb6
(svn r2322) - CodeChange: doxygen commented the tunnel-crash fix. Also if (bla) {return;} else {return;} is not proper code. It's if (bla) {return;} return; ;)
2005-05-15 16:30:02 +00:00
Darkvater
3fd39ec630
(svn r2322) - CodeChange: doxygen commented the tunnel-crash fix. Also if (bla) {return;} else {return;} is not proper code. It's if (bla) {return;} return; ;)
2005-05-15 16:30:02 +00:00
matthijs
abdf4ead87
(svn r2321) - Fix: [ 1202286 ] On OS/2 you get a double backslash in your filename after browsing to the root dir of a drive and "." and ".." are incorrectly displayed. (orudge)
2005-05-15 14:01:35 +00:00
matthijs
89587c1d51
(svn r2321) - Fix: [ 1202286 ] On OS/2 you get a double backslash in your filename after browsing to the root dir of a drive and "." and ".." are incorrectly displayed. (orudge)
2005-05-15 14:01:35 +00:00
matthijs
1436fa9d48
(svn r2320) - Fix: [ 1185176 ] Train in tunnel is not properly detected by signal code (Hackykid)
2005-05-15 13:48:23 +00:00
matthijs
2151550631
(svn r2320) - Fix: [ 1185176 ] Train in tunnel is not properly detected by signal code (Hackykid)
2005-05-15 13:48:23 +00:00
Darkvater
a195f8df91
(svn r2319) - Fix: copying/pasting from the extra viewport did not center on what you wanted to see if one of the windows (viewport or main) was zoomed out. Also fix the undisabled-zoom-in button upon creation.
2005-05-15 11:20:38 +00:00
Darkvater
14996be3ef
(svn r2319) - Fix: copying/pasting from the extra viewport did not center on what you wanted to see if one of the windows (viewport or main) was zoomed out. Also fix the undisabled-zoom-in button upon creation.
2005-05-15 11:20:38 +00:00
Darkvater
d958518e76
(svn r2318) - Feature: added console command 'part' to leave a currently running game and 'join' which is an alias to 'connect' to join a multiplayer server.
2005-05-15 10:40:53 +00:00
Darkvater
5501f25084
(svn r2318) - Feature: added console command 'part' to leave a currently running game and 'join' which is an alias to 'connect' to join a multiplayer server.
2005-05-15 10:40:53 +00:00
Darkvater
037ef4cd31
(svn r2317) - Fix: [ 1193048 ] Pre-signal stays red when there is only a single exit signal (dinno)
2005-05-15 10:23:42 +00:00
Darkvater
0ddf93956e
(svn r2317) - Fix: [ 1193048 ] Pre-signal stays red when there is only a single exit signal (dinno)
2005-05-15 10:23:42 +00:00
Darkvater
d1b068355c
(svn r2316) - Fix: [ 1154454 ] Fix BeOS build on Trunk (myob)
2005-05-14 23:48:39 +00:00
Darkvater
6f06930ee3
(svn r2316) - Fix: [ 1154454 ] Fix BeOS build on Trunk (myob)
2005-05-14 23:48:39 +00:00
Darkvater
9cfb89cf24
(svn r2315) - Fix: [ 1187613 ] No HQ present for competitor, disable 'View HQ' button, inspired by lucaspiller
2005-05-14 22:51:15 +00:00
Darkvater
788286e9d3
(svn r2315) - Fix: [ 1187613 ] No HQ present for competitor, disable 'View HQ' button, inspired by lucaspiller
2005-05-14 22:51:15 +00:00
Darkvater
ed5cf7b28f
(svn r2314) - Feature: [ 1187490 ] Patches for building on IRIX (jgilje)
2005-05-14 22:42:33 +00:00
Darkvater
4c0c553a8f
(svn r2314) - Feature: [ 1187490 ] Patches for building on IRIX (jgilje)
2005-05-14 22:42:33 +00:00
Darkvater
ea20ca8fc2
(svn r2313) - Fix: [ 1202115 ] Clicking shipslist on bouy asserts GetPlayer(). Bouys and oilrigs don't have owners, so it cannot get the vehicle-list of the station-owner. Just use _current_player
2005-05-14 22:03:25 +00:00
Darkvater
220e5be863
(svn r2313) - Fix: [ 1202115 ] Clicking shipslist on bouy asserts GetPlayer(). Bouys and oilrigs don't have owners, so it cannot get the vehicle-list of the station-owner. Just use _current_player
2005-05-14 22:03:25 +00:00
Darkvater
529d280167
(svn r2312) - Fix (regression): changing to/from fullscreen got broken with SDL.
2005-05-14 21:55:54 +00:00
Darkvater
32bb69ef1c
(svn r2312) - Fix (regression): changing to/from fullscreen got broken with SDL.
2005-05-14 21:55:54 +00:00
Darkvater
a77e736431
(svn r2311) - Fix: eh, forgot to remove moved function.
2005-05-14 21:03:46 +00:00
Darkvater
0269361b28
(svn r2311) - Fix: eh, forgot to remove moved function.
2005-05-14 21:03:46 +00:00
Darkvater
a77a211ef7
(svn r2310) - Fix: Game would crash if you full-screened with the 'fullscreen' button than chose a resolution from the dropdown box that was no longer valid. Big thanks to DaleStan for track down the crashing bug.
...
- Fix: There would be duplicate entries in the resolutions dropdown box. Copy SDL method or removing duplicates and sort the list.
- Feature: in the settings menu, you don't have to click on the arrows anymore, clicking on the dropdown box itself has the same effect. Consistent with other dropdowns in the game
2005-05-14 21:01:57 +00:00
Darkvater
2aa94201dc
(svn r2310) - Fix: Game would crash if you full-screened with the 'fullscreen' button than chose a resolution from the dropdown box that was no longer valid. Big thanks to DaleStan for track down the crashing bug.
...
- Fix: There would be duplicate entries in the resolutions dropdown box. Copy SDL method or removing duplicates and sort the list.
- Feature: in the settings menu, you don't have to click on the arrows anymore, clicking on the dropdown box itself has the same effect. Consistent with other dropdowns in the game
2005-05-14 21:01:57 +00:00
Darkvater
56bc64a3a1
(svn r2309) - CodeChange: Change all _iconsole_color_whatever into _icolour_wtv (abbreviated). Besides the changed into proper english, yes this commit is pretty useless ;)
2005-05-14 19:34:59 +00:00
Darkvater
d99dddc704
(svn r2309) - CodeChange: Change all _iconsole_color_whatever into _icolour_wtv (abbreviated). Besides the changed into proper english, yes this commit is pretty useless ;)
2005-05-14 19:34:59 +00:00
Darkvater
57a44b4243
(svn r2308) - Fix: enforce server-only and/or offline commands by giving them flags in the process table. This also fixes bug "[ 1190944 ] Many commands not checked for security"
...
- CodeChange: move ValParamRailtype() to check rail type from command.h to vehicle.h where it is better suited.
2005-05-14 19:25:18 +00:00
Darkvater
2bf3d14dfc
(svn r2308) - Fix: enforce server-only and/or offline commands by giving them flags in the process table. This also fixes bug "[ 1190944 ] Many commands not checked for security"
...
- CodeChange: move ValParamRailtype() to check rail type from command.h to vehicle.h where it is better suited.
2005-05-14 19:25:18 +00:00
Darkvater
e4eb0c672a
(svn r2307) - Fix (regression): it was not possible to change the drive-side in the intro-game.
...
- CodeChange: remove unused "CANT_DO_THIS" double-string.
2005-05-14 18:25:01 +00:00
Darkvater
fbb794d450
(svn r2307) - Fix (regression): it was not possible to change the drive-side in the intro-game.
...
- CodeChange: remove unused "CANT_DO_THIS" double-string.
2005-05-14 18:25:01 +00:00
Darkvater
7470322a3d
(svn r2306) - CodeChange: Check the last commands; refits. This needed an extensive rewrite and global/local-cargo ID juggling and bitmasking. However with this done it looks better as well and is compatible with newgrf handling. Big thanks to HackyKid for doing most of the work. This also closes patch "[ 1199277 ] Command checks"
2005-05-14 12:36:16 +00:00
Darkvater
5174d3adfe
(svn r2306) - CodeChange: Check the last commands; refits. This needed an extensive rewrite and global/local-cargo ID juggling and bitmasking. However with this done it looks better as well and is compatible with newgrf handling. Big thanks to HackyKid for doing most of the work. This also closes patch "[ 1199277 ] Command checks"
2005-05-14 12:36:16 +00:00
miham
5c8d40bb05
(svn r2305) [Translations] Updated to 2005-05-14 (~50 strs / 7 langs)
2005-05-14 06:48:14 +00:00
miham
3a4bedaad6
(svn r2305) [Translations] Updated to 2005-05-14 (~50 strs / 7 langs)
2005-05-14 06:48:14 +00:00
Darkvater
8969751c02
(svn r2304) - Fix (regression): excuse the Lumber mill from the list of raw-industries build-restriction, as it can be built always, patch-setting, or no patch-setting.
2005-05-13 18:19:26 +00:00
Darkvater
950dcd47eb
(svn r2304) - Fix (regression): excuse the Lumber mill from the list of raw-industries build-restriction, as it can be built always, patch-setting, or no patch-setting.
2005-05-13 18:19:26 +00:00
Darkvater
09a71c391a
(svn r2303) - CodeChange (fix): when giving money to other players only allow transferring money that is above your loan. Eg you can't give away your loan.
...
- Langfix: 'goes down by' 'increases', vv for down in english.txt.
2005-05-13 17:09:05 +00:00
Darkvater
0ff942f560
(svn r2303) - CodeChange (fix): when giving money to other players only allow transferring money that is above your loan. Eg you can't give away your loan.
...
- Langfix: 'goes down by' 'increases', vv for down in english.txt.
2005-05-13 17:09:05 +00:00
Darkvater
408a036bcc
(svn r2302) - Fix: when you started a server 'load <file>' did not work prior to doing 'ls'. Fixed by moving the changing of saveload_mode into BuildFileList()
2005-05-13 17:05:03 +00:00
Darkvater
d19438f858
(svn r2302) - Fix: when you started a server 'load <file>' did not work prior to doing 'ls'. Fixed by moving the changing of saveload_mode into BuildFileList()
2005-05-13 17:05:03 +00:00
Darkvater
dcd4ad4155
(svn r2301) - CodeChange: prettyify ChangeOwnerShipOfPlayerItems() a bit
...
- CodeChange: add comments to a very ugly part of the code (network_client.c); that enforces that the server gives an ID to the client.
2005-05-12 23:47:45 +00:00
Darkvater
31f8f6a7b5
(svn r2301) - CodeChange: prettyify ChangeOwnerShipOfPlayerItems() a bit
...
- CodeChange: add comments to a very ugly part of the code (network_client.c); that enforces that the server gives an ID to the client.
2005-05-12 23:47:45 +00:00
Darkvater
ddd4958164
(svn r2300) - CodeChange: check the last number of commands, now only the refit ones remain, and some server-only commands.
...
- CodeChange: remove cmd-misuses CmdStartScenario() and CmdDestroyCompanyHQ()
- Fix (invisible): when parameter checking CmdRestoreOrderIndex() the vehicle did not have its orders yet, so it would fail. So move doing this until AFTER the orders have been added back in RestoreVehicleOrders()
2005-05-12 23:46:01 +00:00
Darkvater
033995ec6e
(svn r2300) - CodeChange: check the last number of commands, now only the refit ones remain, and some server-only commands.
...
- CodeChange: remove cmd-misuses CmdStartScenario() and CmdDestroyCompanyHQ()
- Fix (invisible): when parameter checking CmdRestoreOrderIndex() the vehicle did not have its orders yet, so it would fail. So move doing this until AFTER the orders have been added back in RestoreVehicleOrders()
2005-05-12 23:46:01 +00:00
Darkvater
0727085b3b
(svn r2299) - Fix: add more verbose output to possible hack-attempt.
...
- Btw, only 14 more commands are remaining, 88% done \o/
2005-05-12 00:20:16 +00:00