------------------------------------------------------------------------ r4326 | tron | 2006-04-08 14:18:39 +0000 (Sat, 08 Apr 2006) | 1 line Only reduce the slot age of a vehicle if it has a slot assigned ------------------------------------------------------------------------ r4325 | tron | 2006-04-08 13:58:19 +0000 (Sat, 08 Apr 2006) | 1 line When updating the vehicle count for road stops after load use the slot pointer of the vehicle instead of recalculating the road stop using the destination tile of the vehicle. Apart from being more simple this could prevent a inconsistency of slot information in the edge case when the destination tile isn't the tile of the assigned slot. ------------------------------------------------------------------------ r4324 | tron | 2006-04-08 13:50:01 +0000 (Sat, 08 Apr 2006) | 1 line Remove the unused road stop type attribute from struct RoadStop ------------------------------------------------------------------------ r4323 | tron | 2006-04-08 13:32:38 +0000 (Sat, 08 Apr 2006) | 3 lines -Regression: Clear the slot assignments of all vehicles heading twoards a road stop if that road stop gets removed This issue was fixed in r2210 and reintroduced in r4259 when the multistop handling was overhauled. ------------------------------------------------------------------------ r4322 | peter1138 | 2006-04-08 12:04:23 +0000 (Sat, 08 Apr 2006) | 2 lines - Codechange: Remove conversion of kmh to mph from gui code to within the units conversion system, in string.c. This means displaying kmh requires no conversion, instead of being convert from kmh to mph, and then back to kmh again. ------------------------------------------------------------------------ r4321 | tron | 2006-04-08 06:55:43 +0000 (Sat, 08 Apr 2006) | 1 line For ships check the ship state, not the road state. This bug was harmless, because both states are at the same byte in the vehicle type specific union. ------------------------------------------------------------------------ r4320 | celestar | 2006-04-08 05:44:37 +0000 (Sat, 08 Apr 2006) | 1 line -Fix/Codechange: rs->num_vehicles is no longer saved or loaded, but computed on the fly. Partly fixes FS#101 ------------------------------------------------------------------------ r4319 | celestar | 2006-04-08 05:24:29 +0000 (Sat, 08 Apr 2006) | 1 line -Codechange: Station map accessors ------------------------------------------------------------------------ r4318 | belugas | 2006-04-08 01:07:32 +0000 (Sat, 08 Apr 2006) | 1 line CodeChange : Remove last direct map access on ai/default/default.c ------------------------------------------------------------------------ r4317 | celestar | 2006-04-07 15:57:03 +0000 (Fri, 07 Apr 2006) | 1 line -Codechange: More map accessors for ship_cmd. it is now map-access free, but still requires a huge cleanup ------------------------------------------------------------------------ r4316 | celestar | 2006-04-07 09:37:04 +0000 (Fri, 07 Apr 2006) | 1 line -Codechange: finished r4257 (forgot one variable there) ------------------------------------------------------------------------ r4315 | tron | 2006-04-07 09:15:17 +0000 (Fri, 07 Apr 2006) | 1 line Remove MAX_QUERYSTR_LEN, rather use lengthof() the real thing ------------------------------------------------------------------------ r4314 | tron | 2006-04-07 09:07:53 +0000 (Fri, 07 Apr 2006) | 1 line -Fix: a buffer overflow of the chat box introduced in r1263. Don't tell the Textbuf an arbitrary number as size of the string buffer, but the real lengthof() it ------------------------------------------------------------------------ r4313 | tron | 2006-04-07 09:00:57 +0000 (Fri, 07 Apr 2006) | 1 line The parent window of the chat box is always the main toolbar (?!), therefore don't pass this information as parameter ------------------------------------------------------------------------ r4312 | tron | 2006-04-07 08:57:03 +0000 (Fri, 07 Apr 2006) | 1 line Calculate the maximum pixel width of the entered text in the chat box from the "text box"-widget instead of hardcoding an arbitrary - and wrong - number ------------------------------------------------------------------------ r4311 | celestar | 2006-04-07 08:42:30 +0000 (Fri, 07 Apr 2006) | 2 lines -Fix/Codechange: Clear the railtype when removing rail under a bridge. FS#103 exhibited this problem ------------------------------------------------------------------------ r4310 | tron | 2006-04-07 08:37:39 +0000 (Fri, 07 Apr 2006) | 1 line The chat box has no visible window title, therefore remove the string ------------------------------------------------------------------------ r4309 | tron | 2006-04-07 08:27:43 +0000 (Fri, 07 Apr 2006) | 1 line The initial string of the chat box is always the empty string, so don't jump through hoops to check if nothing was entered and simplify the code ------------------------------------------------------------------------ r4307 | celestar | 2006-04-07 07:40:44 +0000 (Fri, 07 Apr 2006) | 1 line -Fix: Coding style in previous commit. Thanks to Tron for instant notice ------------------------------------------------------------------------ r4306 | celestar | 2006-04-07 07:39:03 +0000 (Fri, 07 Apr 2006) | 2 lines -Fix (103). Assertion when removing elrails under bridges. Thanks to Rubidium for reporting and fixing ------------------------------------------------------------------------ r4305 | celestar | 2006-04-07 07:19:14 +0000 (Fri, 07 Apr 2006) | 2 lines -Codechange: Minor elrail cleanup (Tron) ------------------------------------------------------------------------ r4304 | tron | 2006-04-07 07:08:20 +0000 (Fri, 07 Apr 2006) | 1 line The chat box' parent window (the main toolbar, wtf?) doesn't care for the WE_ON_EDIT_TEXT_CANCEL event, so don't send one. This code looks like it was mindlessly copy&pasted from the query box ------------------------------------------------------------------------ r4302 | Darkvater | 2006-04-06 19:16:39 +0000 (Thu, 06 Apr 2006) | 1 line - Fix: s/maxlength/maxwidth of course, the buffer size is always set. Comment-change only ------------------------------------------------------------------------ r4301 | Darkvater | 2006-04-06 19:11:41 +0000 (Thu, 06 Apr 2006) | 1 line - Fix: the maxlength parameter of Textbuf is supposed to be the size of the buffer (so length of string + '\0'), but in the code it was a mix of both. It didn't cause any problems though, only an occasionaly one-less character than allowed. (thanks Tron for noticing) ------------------------------------------------------------------------ r4292 | Darkvater | 2006-04-05 20:12:54 +0000 (Wed, 05 Apr 2006) | 1 line - CodeChange: sprinkle some holy water on l'ugly code (braces, and pos is PacketSize not int) ------------------------------------------------------------------------ r4291 | Darkvater | 2006-04-05 20:11:01 +0000 (Wed, 05 Apr 2006) | 1 line - Fix: validate all received strings for correctness. This fixes potential crashes on invalid clients/servers (thanks test for bringing this to our attention) ------------------------------------------------------------------------ r4290 | celestar | 2006-04-05 19:08:09 +0000 (Wed, 05 Apr 2006) | 1 line -Fix: fixed power computation for mixed consists on level crossings (michi_cc) ------------------------------------------------------------------------ r4289 | celestar | 2006-04-05 18:46:21 +0000 (Wed, 05 Apr 2006) | 2 lines -Codechange: Make use of water_map accessors for ships. Make a mental note to clean ship_cmd ------------------------------------------------------------------------ r4286 | celestar | 2006-04-05 10:19:59 +0000 (Wed, 05 Apr 2006) | 1 line -Fix: Typo in 4280 ------------------------------------------------------------------------ r4284 | celestar | 2006-04-05 09:28:57 +0000 (Wed, 05 Apr 2006) | 2 lines -Fix: Tunnel portals no longer have a pylon ON them if there is a track right above the portal ------------------------------------------------------------------------ r4283 | celestar | 2006-04-05 09:17:43 +0000 (Wed, 05 Apr 2006) | 2 lines -Cleanup: More elrail housekeeping, remove code dublication, more meaningful variable names, simplify control flow.. ------------------------------------------------------------------------ r4282 | celestar | 2006-04-05 08:45:29 +0000 (Wed, 05 Apr 2006) | 2 lines -Cleanup: Re-arranged the ignore groups into a more readable arrangement ------------------------------------------------------------------------ r4281 | celestar | 2006-04-05 08:28:03 +0000 (Wed, 05 Apr 2006) | 1 line -Cleanup: Begun cleaning up elrail code a bit, mostly comments and enum/array alignment ------------------------------------------------------------------------ r4280 | celestar | 2006-04-05 05:22:42 +0000 (Wed, 05 Apr 2006) | 2 lines -Codechange: Add and make use of map accessors concerning railway waypoints ------------------------------------------------------------------------ r4279 | tron | 2006-04-04 21:35:13 +0000 (Tue, 04 Apr 2006) | 1 line s/\