summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2007-01-17(svn r8185) -Codechange: Equipped Roadstops with new/delete operators and ↵celestar
gave them proper constructors/destructors (Thanks to KUDr for a nice interactive C++ lesson)
2007-01-17(svn r8184) if cascade -> switchtron
2007-01-17(svn r8183) When iterating over the map in AfterLoadGame() do it the same ↵tron
way for all loops
2007-01-17(svn r8171) -Fix (FS#556): return SL_ERROR when unthreaded saves failed, to ↵rubidium
make sure we do not try to send zero-byte savegames.
2007-01-16(svn r8168) -Regression (r6783): ParseConnectionstring didn't use the port ↵Darkvater
parameter if a player was also specified. (both IP#Player:Port and IP:Port#Player btw)
2007-01-16(svn r8167) -Fix (FS#556): a network client crashes, due to a division by ↵rubidium
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(svn r8166) -Fix (r7797): Protect against out of bounds access to the sprite ↵peter1138
ptr list.
2007-01-16(svn r8165) -Revert r8107 and show the MD5SUM of the *REPLACEMENT* grf file, ↵Darkvater
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(svn r8164) -Codechange (r8159): Fix up some comments/doxygen for disasters ↵Darkvater
and rename Submarine1/2 to small/big
2007-01-16(svn r8163) [Translations] Re-added cases for the czech language (they were ↵miham
removed either accidentally or on purpose, will look after it later
2007-01-16(svn r8162) WebTranslator2 update to 2007-01-16 19:44:34miham
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(svn r8161) -Fix (FS#555, r8144): enroute_from_xy was not set properly for ↵rubidium
old savegames.
2007-01-16(svn r8160) -Fix (r8151): Do not use HasSignals on tiles without railways.maedhros
2007-01-16(svn r8159) -Cleanup: Sprinkle some coding-style and comments on the ↵Darkvater
disaster code.
2007-01-16(svn r8158) -Fix: The submarine disaster failed to move at all due to wrong ↵Darkvater
masking of trackbits
2007-01-16(svn r8157) -Fix (r3136): moving cargo during auto replaces did not update ↵rubidium
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(svn r8155) -Fix: fixed compilation when --disable-network is in usebjarni
2007-01-16(svn r8154) -Codechange: Water can no longer be under bridge tiles, so don't ↵peter1138
check for it.
2007-01-16(svn r8153) -Codechange: Change UpdateStationAcceptance() and ↵peter1138
ShowRejectOrAcceptNews() to work with cargo IDs instead of cargo names, and explicitly list the different strings to use.
2007-01-16(svn r8152) Fix a off-by-one error in the placement of the sticky box of the ↵tron
road build toolbar in the scenario editor
2007-01-15(svn r8151) -Feature: Automatically build semaphores before a configurable ↵maedhros
date, which can be set by each network player seperately.
2007-01-15(svn r8148) WebTranslator2 update to 2007-01-15 19:25:31miham
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(svn r8147) -Fix: [autoreplace] v->leave_depot_instantly was not always ↵bjarni
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(svn r8146) -Fix (FS#552, r8038): a C/C++ linkage problem on some very few ↵celestar
incarnations of gcc
2007-01-15(svn r8145) -Featurette: Allow for Tropic Farm to plant fields after ↵belugas
producing cargo, like its counterpart in temperate climate.
2007-01-15(svn r8144) -Fix: [FS#163] When a station is removed, vehicles do not get ↵celestar
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(svn r8143) Remove the landscaping button from the build toolbars.tron
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(svn r8141) -Fix r8128: [OSX] now OSX can compile again.bjarni
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(svn r8140) -Fix [FS#54]: Combat helicopter flies past factory before it ↵Darkvater
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-14(svn r8139) -Cleanup: simplify auto_ptr initialization (Tron)KUDr
2007-01-14(svn r8138) -Cleanup: comment style correctionsKUDr
2007-01-14(svn r8137) -Fix (FS#551, r4259, r4320): roadstop->num_vehicles was wrong ↵rubidium
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(svn r8136) -Codechange: Station spread rectangle manipulators turned into ↵KUDr
StationRect::methods.
2007-01-14(svn r8135) -Fix (r7582): Don't assert on duplicate non-static grfs when ↵Darkvater
removing duplicates as the PEBKAC effect can result in the user adding the same grf's in the config file.
2007-01-14(svn r8134) -Fix (r8013): Add a newline after the ShowInfo console outputDarkvater
2007-01-14(svn r8133) -Fix [FS#535]: "out of sprite memory" warning messages due to ↵Darkvater
incorrect assumption of requested memory for sprites (smatz)
2007-01-14(svn r8132) -Fix (r6824): The game could crash when the chat key (<ENTER>) ↵Darkvater
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(svn r8131) -Fix (r8125): g++ warning: 'invalid access to non-static data ↵KUDr
member ‘<class>::<member>’ of NULL object'. It is weird, but renaming the 'offsetof' macro helped.
2007-01-14(svn r8130) Provide struct GoodsEntry with a constructortron
2007-01-14(svn r8129) -Codechange: Change data tables to use split off palette map. And peter1138
include a file missed last time...
2007-01-14(svn r8128) -Codechange: Split sprite and palette remap into separate 32 bit ↵peter1138
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(svn r8127) -Fix (r8125): removed redundant free() call which is also in ↵KUDr
Station destructor (Tron)
2007-01-14(svn r8126) -Fix (r8125): missing #include fixes compilation error on g++ ↵KUDr
(still some warnings, working on it)
2007-01-14(svn r8125) -Codechange: Station is now constructed/destroyed using ↵KUDr
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(svn r8124) -Add [DEBUG]: _debug_station_levelKUDr
2007-01-14(svn r8123) -Fix (r117): FindFirstBit now really returns the first bit. ↵maedhros
Fixes bug FS#538.
2007-01-14(svn r8122) -Fix[LANG]: terror in czech lang file (again)KUDr
2007-01-14(svn r8121) WebTranslator2 update to 2007-01-14 19:39:35miham
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(svn r8120) -Fix (r8055): Station cargo waiting value clamp should be signed ↵peter1138
not unsigned. This resulted in cargo magically appearing...
2007-01-14(svn r8119) -Fix (r8101): Uninitializing windows should be called before ↵Darkvater
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