celestar
bdb9543f7c
(svn r8185) -Codechange: Equipped Roadstops with new/delete operators and gave them proper constructors/destructors (Thanks to KUDr for a nice interactive C++ lesson)
2007-01-17 11:15:51 +00:00
tron
decd7fbe31
(svn r8184) if cascade -> switch
2007-01-17 06:54:03 +00:00
tron
b8ede482a9
(svn r8183) When iterating over the map in AfterLoadGame() do it the same way for all loops
2007-01-17 06:33:23 +00:00
rubidium
3ce83d41fa
(svn r8171) -Fix (FS#556): return SL_ERROR when unthreaded saves failed, to make sure we do not try to send zero-byte savegames.
2007-01-17 00:01:55 +00:00
Darkvater
4b3cbf1a14
(svn r8168) -Regression (r6783): ParseConnectionstring didn't use the port parameter if a player was also specified. (both IP#Player:Port and IP:Port#Player btw)
2007-01-16 23:01:06 +00:00
rubidium
5696dfef94
(svn r8167) -Fix (FS#556): a network client crashes, due to a division by zero, when the connection gets lost at the right moment or when the packet is malformed (server sends size 0 for the map).
2007-01-16 22:56:18 +00:00
peter1138
e6178acc18
(svn r8166) -Fix (r7797): Protect against out of bounds access to the sprite ptr
...
list.
2007-01-16 22:10:35 +00:00
Darkvater
7479eab247
(svn r8165) -Revert r8107 and show the MD5SUM of the *REPLACEMENT* grf file, NOT the original one. Reason for this is that this md5sum is saved, and otherwise a wrong md5sum would be stored in a savegame.
2007-01-16 21:34:51 +00:00
Darkvater
9159823500
(svn r8164) -Codechange (r8159): Fix up some comments/doxygen for disasters and rename Submarine1/2 to small/big
2007-01-16 20:16:30 +00:00
miham
6afbd5e1a8
(svn r8163) [Translations] Re-added cases for the czech language (they were removed either accidentally or on purpose, will look after it later
2007-01-16 19:27:28 +00:00
miham
cc39a887bb
(svn r8162) WebTranslator2 update to 2007-01-16 19:44:34
...
brazilian_portuguese - 1 fixed, 66 changed by fukumori (67)
catalan - 1 fixed by arnaullv (1)
czech - 1 fixed by Hadez (1)
danish - 1 fixed, 1 changed by MiR (1), ThomasA (1)
french - 1 fixed by glx (1)
hungarian - 1 fixed by miham (1)
italian - 1 fixed by sidew (1)
japanese - 1 fixed, 63 changed by ickoonite (64)
norwegian_nynorsk - 1 fixed, 37 changed by khaavik (28), pollux (10)
portuguese - 1 fixed by izhirahider (1)
slovenian - 1 fixed by Necrolyte (1)
ukrainian - 5 fixed, 16 changed by fevral13 (4), znikoz (17)
2007-01-16 18:45:25 +00:00
rubidium
f9c6f7d0a7
(svn r8161) -Fix (FS#555, r8144): enroute_from_xy was not set properly for old savegames.
2007-01-16 18:31:58 +00:00
maedhros
1770db53ca
(svn r8160) -Fix (r8151): Do not use HasSignals on tiles without railways.
2007-01-16 17:44:59 +00:00
Darkvater
e4d48ab471
(svn r8159) -Cleanup: Sprinkle some coding-style and comments on the disaster code.
2007-01-16 16:54:06 +00:00
Darkvater
7e69f3f7b1
(svn r8158) -Fix: The submarine disaster failed to move at all due to wrong masking of trackbits
2007-01-16 16:28:41 +00:00
rubidium
39ca1ef7ae
(svn r8157) -Fix (r3136): moving cargo during auto replaces did not update the cached vehicle weight for trains properly. This caused (in network games) the server to have a different cached vehicle weight than newly joined clients would have, which causes desyncs.
2007-01-16 15:45:20 +00:00
bjarni
b10556a90e
(svn r8155) -Fix: fixed compilation when --disable-network is in use
2007-01-16 15:20:22 +00:00
peter1138
990e1a51f0
(svn r8154) -Codechange: Water can no longer be under bridge tiles, so don't check for it.
2007-01-16 15:18:02 +00:00
peter1138
0e86608bf6
(svn r8153) -Codechange: Change UpdateStationAcceptance() and ShowRejectOrAcceptNews() to work with cargo IDs instead of cargo names, and explicitly list the different strings to use.
2007-01-16 11:13:00 +00:00
tron
36c534203f
(svn r8152) Fix a off-by-one error in the placement of the sticky box of the road build toolbar in the scenario editor
2007-01-16 08:10:29 +00:00
maedhros
e91bbdd491
(svn r8151) -Feature: Automatically build semaphores before a configurable date, which can be set by each network player seperately.
2007-01-15 22:18:35 +00:00
miham
8e8c72b8e1
(svn r8148) WebTranslator2 update to 2007-01-15 19:25:31
...
brazilian_portuguese - 4 fixed by fukumori (4)
bulgarian - 1 fixed, 48 changed by groupsky (49)
croatian - 163 fixed, 60 changed by Ydobon (223)
danish - 23 changed by MiR (23)
esperanto - 2 changed by LaPingvino (2)
italian - 4 fixed by sidew (4)
japanese - 5 fixed by ickoonite (5)
norwegian_bokmal - 4 fixed by brygge_2 (4)
norwegian_nynorsk - 830 changed by khaavik (822), Eikje3 (8)
portuguese - 4 fixed by izhirahider (4)
slovenian - 4 fixed, 64 changed by Necrolyte (68)
2007-01-15 18:28:27 +00:00
bjarni
ee424b3618
(svn r8147) -Fix: [autoreplace] v->leave_depot_instantly was not always reset correctly
...
While it's not certain if this would have any serious sideeffects (or any at all), it's reset when intended now
2007-01-15 17:32:42 +00:00
celestar
a12b640f94
(svn r8146) -Fix (FS#552, r8038): a C/C++ linkage problem on some very few incarnations of gcc
2007-01-15 17:32:01 +00:00
belugas
4c18106f9a
(svn r8145) -Featurette: Allow for Tropic Farm to plant fields after producing cargo, like its counterpart in temperate climate.
2007-01-15 16:31:46 +00:00
celestar
f69794b8c1
(svn r8144) -Fix: [FS#163] When a station is removed, vehicles do not get excessive payment any longer, as the origin TILE is now stored as long as the origin STATION for the transported cargos. Basically this is only a temporary fix until cargopackets are implemented, but it fixes one of the oldest known bugs (Special Thanks to Darkvater for lots of testing)
2007-01-15 14:42:24 +00:00
tron
f8c650fa3a
(svn r8143) Remove the landscaping button from the build toolbars.
...
The landscaping toolbar can be reached at least as easy directly from the main toolbar.
Further two of the four toolbars uses 'l' as keyboard shortcut for this button, which plain does not work (The letter has to be uppercase).
This was covered by the fact there is a global shortcut 'L' to open the landscaping toolbar, so the individual checks in the four build toolbars were redundant anyway.
2007-01-15 07:38:36 +00:00
bjarni
5461ec7889
(svn r8141) -Fix r8128: [OSX] now OSX can compile again.
...
Note: this is again another not so nice workaround as Objective C fails to include C++ code in the headers
We should move to Objective C++ as soon as possible, but such a change is not done overnight and
this quick fix will allow OSX to compile until the prober solution is done
2007-01-15 00:58:18 +00:00
Darkvater
e28d4aff8f
(svn r8140) -Fix [FS#54]: Combat helicopter flies past factory before it shoots. Chopper comes from the north-east, so it looks in +15 direction (forward), not -15 direction. Probably bad copy-paste from airplane-destroys-oil-refinery disaster.
2007-01-15 00:09:25 +00:00
KUDr
97ee8287ab
(svn r8139) -Cleanup: simplify auto_ptr initialization (Tron)
2007-01-14 23:43:59 +00:00
KUDr
96ac5ac111
(svn r8138) -Cleanup: comment style corrections
2007-01-14 23:36:25 +00:00
rubidium
2352e76a8f
(svn r8137) -Fix (FS#551, r4259, r4320): roadstop->num_vehicles was wrong for savegames with version 24 or lower and do not calculate roadstop->num_vehicles when reading the roadstops as the vehicles might not be loaded at that moment.
2007-01-14 23:09:25 +00:00
KUDr
48c99c8174
(svn r8136) -Codechange: Station spread rectangle manipulators turned into StationRect::methods.
2007-01-14 23:02:12 +00:00
Darkvater
6133bd1b31
(svn r8135) -Fix (r7582): Don't assert on duplicate non-static grfs when removing duplicates as the PEBKAC effect can result in the user adding the same grf's in the config file.
2007-01-14 22:43:19 +00:00
Darkvater
62db889664
(svn r8134) -Fix (r8013): Add a newline after the ShowInfo console output
2007-01-14 22:39:53 +00:00
Darkvater
5f06f6796d
(svn r8133) -Fix [FS#535]: "out of sprite memory" warning messages due to incorrect assumption of requested memory for sprites (smatz)
2007-01-14 21:50:56 +00:00
Darkvater
c6bfa82874
(svn r8132) -Fix (r6824): The game could crash when the chat key (<ENTER>) is pressed too vehemently during the join of the game. Your client's id does not exist in the clients list yet, and returns NULL.
2007-01-14 21:32:13 +00:00
KUDr
3439942ab5
(svn r8131) -Fix (r8125): g++ warning: 'invalid access to non-static data member ‘<class>::<member>’ of NULL object'. It is weird, but renaming the 'offsetof' macro helped.
2007-01-14 21:03:21 +00:00
tron
968f748836
(svn r8130) Provide struct GoodsEntry with a constructor
2007-01-14 20:00:25 +00:00
peter1138
13da8502c0
(svn r8129) -Codechange: Change data tables to use split off palette map. And
...
include a file missed last time...
2007-01-14 19:59:25 +00:00
peter1138
ca9843424b
(svn r8128) -Codechange: Split sprite and palette remap into separate 32 bit values.
...
This lets us increase the sprite width from 14 to up to 29 bits,
effectively nulling the old sprite limit. Table changes in next commit.
2007-01-14 19:57:49 +00:00
KUDr
c04c2b2824
(svn r8127) -Fix (r8125): removed redundant free() call which is also in Station destructor (Tron)
2007-01-14 19:44:27 +00:00
KUDr
97993d279e
(svn r8126) -Fix (r8125): missing #include fixes compilation error on g++ (still some warnings, working on it)
2007-01-14 19:29:21 +00:00
KUDr
3ad14cc7a8
(svn r8125) -Codechange: Station is now constructed/destroyed using new/delete operators (don't worry, they still use the same memory pool). Few station related functions turned into Station::methods (just first step). All this new stuff moved from station_cmd.cpp to the new file (station.cpp).
2007-01-14 19:18:50 +00:00
KUDr
e257f0e36c
(svn r8124) -Add [DEBUG]: _debug_station_level
2007-01-14 19:13:36 +00:00
maedhros
c1364599db
(svn r8123) -Fix (r117): FindFirstBit now really returns the first bit. Fixes bug FS#538.
2007-01-14 19:06:11 +00:00
KUDr
238ccd26fb
(svn r8122) -Fix[LANG]: terror in czech lang file (again)
2007-01-14 18:57:39 +00:00
miham
5d2c8444a8
(svn r8121) WebTranslator2 update to 2007-01-14 19:39:35
...
american - 4 fixed by WhiteRabbit (4)
bulgarian - 4 fixed by groupsky (4)
catalan - 4 fixed by arnaullv (4)
croatian - 379 fixed, 32 changed by Ydobon (411)
czech - 4 fixed by joeprusa (4)
danish - 4 fixed, 24 changed by ThomasA (20), MiR (8)
dutch - 4 fixed by habell (1), Zr40 (3)
esperanto - 4 fixed by LaPingvino (4)
estonian - 4 fixed, 2 changed by kristjans (6)
finnish - 7 fixed by pallokala (7)
german - 4 fixed by Neonox (3), chu (1)
hungarian - 4 fixed by miham (4)
japanese - 14 fixed by ickoonite (14)
lithuanian - 4 fixed, 3 changed by Domas (7)
norwegian_nynorsk - 4 fixed, 119 changed by khaavik (123)
romanian - 4 fixed by kneekoo (4)
slovak - 4 fixed by lengyel (4)
spanish - 4 fixed, 2 changed by eusebio (6)
swedish - 4 fixed by ChrillDeVille (4)
2007-01-14 18:41:48 +00:00
peter1138
b4dbfe5e59
(svn r8120) -Fix (r8055): Station cargo waiting value clamp should be signed not unsigned. This resulted in cargo magically appearing...
2007-01-14 18:38:40 +00:00
Darkvater
5b19111817
(svn r8119) -Fix (r8101): Uninitializing windows should be called before freeing dynamic variables as windows could use those variables during cleanup (eg WE_DESTROY calling GetStation(w->window_number).
...
-Merged UnInitializeGame with UnInitializeAirports and UnInitializeDynamicVariables
2007-01-14 17:17:30 +00:00