Commit Graph

5707 Commits

Author SHA1 Message Date
tron 2742b5fe25 (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 0bd6622c2e (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 1f3ea708c3 (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 96b19ca23e (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 f19b87df08 (svn r8166) -Fix (r7797): Protect against out of bounds access to the sprite ptr
list.
2007-01-16 22:10:35 +00:00
Darkvater 0c9e65d8cc (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 542f156091 (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 6cc178d577 (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 b67c92d7cd (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 3d6b021faa (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 eeaf5c1f1c (svn r8160) -Fix (r8151): Do not use HasSignals on tiles without railways. 2007-01-16 17:44:59 +00:00
Darkvater 6908565067 (svn r8159) -Cleanup: Sprinkle some coding-style and comments on the disaster code. 2007-01-16 16:54:06 +00:00
Darkvater 12f0e67437 (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 f3796eee66 (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 ccbe68d5bc (svn r8155) -Fix: fixed compilation when --disable-network is in use 2007-01-16 15:20:22 +00:00
peter1138 1395524390 (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 9b73684733 (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 3005bc3f01 (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 895cc4fa47 (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 b4f128b5f0 (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 0026ea84d1 (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 0fbdae2828 (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 7b9379e0de (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 05b783e551 (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 3b22cfe70d (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 19bdb49e5b (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 c430f2a543 (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 fd383668f8 (svn r8139) -Cleanup: simplify auto_ptr initialization (Tron) 2007-01-14 23:43:59 +00:00
KUDr 278cf974a4 (svn r8138) -Cleanup: comment style corrections 2007-01-14 23:36:25 +00:00
rubidium 48611e1e20 (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 cd74706c54 (svn r8136) -Codechange: Station spread rectangle manipulators turned into StationRect::methods. 2007-01-14 23:02:12 +00:00
Darkvater de10e911cb (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 82b0704bcc (svn r8134) -Fix (r8013): Add a newline after the ShowInfo console output 2007-01-14 22:39:53 +00:00
Darkvater aee29710bd (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 e4d4e13e15 (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 f8a434e9fc (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 b028d8c201 (svn r8130) Provide struct GoodsEntry with a constructor 2007-01-14 20:00:25 +00:00
peter1138 4b4c5a403b (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 92d418b031 (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 19d31c7417 (svn r8127) -Fix (r8125): removed redundant free() call which is also in Station destructor (Tron) 2007-01-14 19:44:27 +00:00
KUDr 1eac31a1d8 (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 8b65342449 (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 d57b290474 (svn r8124) -Add [DEBUG]: _debug_station_level 2007-01-14 19:13:36 +00:00
maedhros d289816deb (svn r8123) -Fix (r117): FindFirstBit now really returns the first bit. Fixes bug FS#538. 2007-01-14 19:06:11 +00:00
KUDr 04d2d80891 (svn r8122) -Fix[LANG]: terror in czech lang file (again) 2007-01-14 18:57:39 +00:00
miham 6fb2b0c952 (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 bfa618ef89 (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 54b88bc8e6 (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
rubidium 468f53911d (svn r8118) -Codechange: change the ordering of the network list a little:
- servers we have information about go above servers we do not have information about.
  - servers that are version compatible go above servers we are not version compatible with.
  - servers we have all required NewGRFs for go above servers we miss NewGRFs for.
  - unpassworded servers go above passworded servers.
2007-01-14 16:44:52 +00:00
KUDr 96ea43d1b2 (svn r8117) -Fix (r8114): 'no matching operator delete found' warning on VC8 2007-01-14 13:21:02 +00:00