Darkvater
d3ce687daf
(svn r2344) - Fix (regression): [ 1197216 ] Error: !invalid string id 0 in GetString. Dedicated server also had the endgame window shown and because now it is properly no-player anymore it crashed.
20 years ago
Darkvater
1c22cea02d
(svn r2343) - Fix (regression): dedicated server caused desyncs with its commands, because the player sent over the network is OWNER_SPECTATOR as well, which on clients cannot execute anything. So *hack*hack* it into temporarily player 0.
20 years ago
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.
20 years ago
miham
90ca24f7b6
(svn r2341) [Translations] Updated to 2005-04-17 (74 strs / 6 langs)
20 years ago
Darkvater
a5612ab10a
(svn r2340) - Fix (Regression): [ 1203731 ] Signs don't work in multiplayer, unwanted remains of the _decode_parameters to _cmd_text move.
20 years ago
Darkvater
54b7fb0203
(svn r2339) - Fix: on a dedicated server, after the joining of a player, the player was set to player 0 instead of remaining OWNER_SPECTATOR. Fix this, and allow the dedicated server to execute commands (so 'patch <value>') now works and not only when a client is connected.
20 years ago
Darkvater
166c1badc9
(svn r2338) - CodeChange: only call the variable hooks when you set their value not when you query them
...
- Fix: typo in pool.c "Cleaing up" --> "Cleaning up"
20 years ago
truelight
143dd26ef5
(svn r2337) -Fix: NetworkUDPRemoveAdvertise wasn't fully correct (which made Darkvater go crazy ;))
20 years ago
Darkvater
391c34c12b
(svn r2336) - GFX: make the openttd icon look good on Win2k and lower as well. The TrueColor/256 icons had an ugly black shadow
20 years ago
miham
f48fdba12c
(svn r2335) [Translations] Updated to 2005-05-16 (36 strs / 17 langs, removed unused strings)
20 years ago
Darkvater
7daaf1f100
(svn r2334) - Fix (regression): moved togglefullscreen into the video-driver, now windows works, dedicated works and sdl works. Also reverted the change to the makefile.
20 years ago
Darkvater
effbba74f5
(svn r2333) - CodeChange: also don't execute command if user has typed all spaces (eg nothing worthwhile). Suggested and implemented by Tron.
20 years ago
Darkvater
653000bdd6
(svn r2332) - Feature: Add 'clear' command and CTRL+L to empty the console window
...
- Fix: do not execute emtpy commands anymore
20 years ago
Darkvater
4554daa130
(svn r2331) - Fix (regression): fix text overflows in about box.
20 years ago
Darkvater
3bd76dad5b
(svn r2330) - Fix: link error when compiling as dedicated. Add sdl.c to always compile in makefile as it is always protected by WITH_SDL and add a stub for ToggleFullScreen()
20 years ago
tron
b18e4d1a8d
(svn r2329) CMD_CHANGE_PRESIDENT_NAME and CMD_CHANGE_COMPANY_NAME don't use p1, so don't send any meaningful value for it when invoking these commands
20 years ago
tron
ff52fc8267
(svn r2328) There's no need for extra magic to detect libpng on FreeBSD
20 years ago
bjarni
2bc9764fcf
(svn r2327) -fix [MacOSX] default path for midi player on mac is now correct again
20 years ago
Darkvater
7dc5c5d1b1
(svn r2325) - Update OpenTTD for 0.4.0 release
20 years ago
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.
20 years ago
tron
6cd410afbb
(svn r2323) Remove unused dereferencing
20 years ago
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; ;)
20 years ago
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)
20 years ago
matthijs
2151550631
(svn r2320) - Fix: [ 1185176 ] Train in tunnel is not properly detected by signal code (Hackykid)
20 years ago
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.
20 years ago
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.
20 years ago
Darkvater
0ddf93956e
(svn r2317) - Fix: [ 1193048 ] Pre-signal stays red when there is only a single exit signal (dinno)
20 years ago
Darkvater
6f06930ee3
(svn r2316) - Fix: [ 1154454 ] Fix BeOS build on Trunk (myob)
20 years ago
Darkvater
788286e9d3
(svn r2315) - Fix: [ 1187613 ] No HQ present for competitor, disable 'View HQ' button, inspired by lucaspiller
20 years ago
Darkvater
4c0c553a8f
(svn r2314) - Feature: [ 1187490 ] Patches for building on IRIX (jgilje)
20 years ago
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
20 years ago
Darkvater
32bb69ef1c
(svn r2312) - Fix (regression): changing to/from fullscreen got broken with SDL.
20 years ago
Darkvater
0269361b28
(svn r2311) - Fix: eh, forgot to remove moved function.
20 years ago
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
20 years ago
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 ;)
20 years ago
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.
20 years ago
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.
20 years ago
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"
20 years ago
miham
3a4bedaad6
(svn r2305) [Translations] Updated to 2005-05-14 (~50 strs / 7 langs)
20 years ago
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.
20 years ago
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.
20 years ago
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()
20 years ago
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.
20 years ago
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()
20 years ago
Darkvater
56e7e4cf25
(svn r2299) - Fix: add more verbose output to possible hack-attempt.
...
- Btw, only 14 more commands are remaining, 88% done \o/
20 years ago
Darkvater
c626555f68
(svn r2298) - CodeChange: removed CmdAbuses: CmdSetTownNameType(), CmdStartNewGame(), CmdCreateScenario(), CmdSetNewLandscapeType() and CmdGenRandomNewGame().
...
- CodeChange: renamed CmdTrainGotoDepot() to CmdSendTrainToDepot() to be consistent with other depot commands.
- CodeChange: 'newgame' console command now calls the unabused GenRandomNewGame(). For the server it still creates a new game, a client quits the game and continues in SP.
- CodeChange: in the game-difficulty window, setup the disabled buttons on window creation, not every redraw.
20 years ago
Darkvater
921cc4e94a
(svn r2297) - CodeChange: server-check the next batch of commands.
...
- 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.
20 years ago
darkvater
f3b217db9d
(svn r2296) - Fix (regression): oops, forgot the MS code-decleration rules :p
20 years ago
Darkvater
a72c06d845
(svn r2295) - Fix: you were still able to delete any tile if you were not careful with CmdDestroyCompanyHQ. Fixed this; thanks HackyKid.
20 years ago
Darkvater
729066e407
(svn r2294) - CodeChange: check the service interval settings when changing of all vehicle-types. To simplify things introduce GetServiceIntervalClamped() that returns the same or clamped value of the new service interval. There were some inconsistencies in the gui files so I had to change those, and const correctness kicked in, so it's a bit messy at certain points.
20 years ago