Commit Graph

1374 Commits (c755fa43d08e5adaad87745769369ec8e5e59915)

Author SHA1 Message Date
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 18 years ago
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)
18 years ago
rubidium f9c6f7d0a7 (svn r8161) -Fix (FS#555, r8144): enroute_from_xy was not set properly for old savegames. 18 years ago
maedhros 1770db53ca (svn r8160) -Fix (r8151): Do not use HasSignals on tiles without railways. 18 years ago
Darkvater e4d48ab471 (svn r8159) -Cleanup: Sprinkle some coding-style and comments on the disaster code. 18 years ago
Darkvater 7e69f3f7b1 (svn r8158) -Fix: The submarine disaster failed to move at all due to wrong masking of trackbits 18 years ago
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. 18 years ago
bjarni b10556a90e (svn r8155) -Fix: fixed compilation when --disable-network is in use 18 years ago
peter1138 990e1a51f0 (svn r8154) -Codechange: Water can no longer be under bridge tiles, so don't check for it. 18 years ago
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. 18 years ago
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 18 years ago
maedhros e91bbdd491 (svn r8151) -Feature: Automatically build semaphores before a configurable date, which can be set by each network player seperately. 18 years ago
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)
18 years ago
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
18 years ago
celestar a12b640f94 (svn r8146) -Fix (FS#552, r8038): a C/C++ linkage problem on some very few incarnations of gcc 18 years ago
belugas 4c18106f9a (svn r8145) -Featurette: Allow for Tropic Farm to plant fields after producing cargo, like its counterpart in temperate climate. 18 years ago
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) 18 years ago
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.
18 years ago
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
18 years ago
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. 18 years ago
KUDr 97ee8287ab (svn r8139) -Cleanup: simplify auto_ptr initialization (Tron) 18 years ago
KUDr 96ac5ac111 (svn r8138) -Cleanup: comment style corrections 18 years ago
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. 18 years ago
KUDr 48c99c8174 (svn r8136) -Codechange: Station spread rectangle manipulators turned into StationRect::methods. 18 years ago
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. 18 years ago
Darkvater 62db889664 (svn r8134) -Fix (r8013): Add a newline after the ShowInfo console output 18 years ago
Darkvater 5f06f6796d (svn r8133) -Fix [FS#535]: "out of sprite memory" warning messages due to incorrect assumption of requested memory for sprites (smatz) 18 years ago
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. 18 years ago
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. 18 years ago
tron 968f748836 (svn r8130) Provide struct GoodsEntry with a constructor 18 years ago
peter1138 13da8502c0 (svn r8129) -Codechange: Change data tables to use split off palette map. And
include a file missed last time...
18 years ago
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.
18 years ago
KUDr c04c2b2824 (svn r8127) -Fix (r8125): removed redundant free() call which is also in Station destructor (Tron) 18 years ago
KUDr 97993d279e (svn r8126) -Fix (r8125): missing #include fixes compilation error on g++ (still some warnings, working on it) 18 years ago
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). 18 years ago
KUDr e257f0e36c (svn r8124) -Add [DEBUG]: _debug_station_level 18 years ago
maedhros c1364599db (svn r8123) -Fix (r117): FindFirstBit now really returns the first bit. Fixes bug FS#538. 18 years ago
KUDr 238ccd26fb (svn r8122) -Fix[LANG]: terror in czech lang file (again) 18 years ago
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)
18 years ago
peter1138 b4dbfe5e59 (svn r8120) -Fix (r8055): Station cargo waiting value clamp should be signed not unsigned. This resulted in cargo magically appearing... 18 years ago
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
18 years ago
rubidium 17208a97a9 (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.
18 years ago
KUDr 6af105993c (svn r8117) -Fix (r8114): 'no matching operator delete found' warning on VC8 18 years ago
tron a63fae4202 (svn r8116) Undo r8113 18 years ago
tron f2e8d4220d (svn r8114) Allocate struct GRFText in the C++ way 18 years ago
tron 302b54b468 (svn r8113) Fix the #include path to table/strings.h 18 years ago
glx 378194d6fe (svn r8111) -Fix r8106: silence warnings 18 years ago
KUDr 92e42d621d (svn r8110) -Codechange: direct Vehicle::current_order.type changes (to OT_LOADING and OT_LEAVESTATION) replaced by v->BeginLoading() and v->LeaveStation() calls. This should allow easy hooking of those state transitions in order to maintain vehicle loading queue. 18 years ago
miham 1d876cbadc (svn r8108) WebTranslator2 update to 2007-01-13 19:32:03
danish     - 56 changed by MiR (56)
french     - 4 fixed by glx (4)
japanese   - 77 fixed, 23 changed by ickoonite (100)
norwegian_nynorsk - 5 fixed, 1 changed by pollux (6)
turkish    - 4 fixed by jnmbk (4)
18 years ago
Darkvater 556cb52a3b (svn r8107) -Codechange (r8106): Show the MD5SUM of the original GRF (saved in savegame) instead of that of the replacement so a user can still go hunt for the original GRF if needed. 18 years ago
Darkvater 4f413d1ff4 (svn r8106) -Feature/Fix: Add the ability to load savegames when you don't have the exact GRF files in your list. GRF files that are found based on GRFID (but not on matching md5sum) are used instead of disabling them. This does not affect MP games, there you still need an exact match.
-GRF Window colour-codes changed a bit: Static is now grey, and compatible GRF (found locally only based on GRFID) are shown in orange. Compatible GRF's also have an orange status/warning text saying they're not the original the game was saved with.
-Loaded games with something amiss regarding GRF's will show an appropiate warning message.
18 years ago
Darkvater c8a0d59132 (svn r8105) -Codechange: Change FindGRFConfig so that if md5sum parameter is omitted (or NULL)
only a check for GRFID is done and not on md5sum as well. Remove blanksum in the function as it's obsoleted
18 years ago
Darkvater 43343d640b (svn r8102) -Cleanup: Remove unreachable code (r8096), useless cast 18 years ago
Darkvater 330f9e0c4e (svn r8101) -Fix (runknown): Plug potential memleaks when calling UnInitWindowSystem. The function directly deleted all windows instead of calling their respective deallocators which could then in turn any used memory. 18 years ago
Darkvater 989033131c (svn r8098) -Fix (r6964): For editboxen, always fill the background with black, and not only after a valid call to FillDrawPixelInfo. This solves some graphics glitches with background widget-colour showing through on frequent redraws. 18 years ago
tron e043c6cef7 (svn r8097) Replace strlen() {==,!=,>} 0 by the more concise {,!}StrEmpty(). Additionally the test takes O(1) instead of O(n) now 18 years ago
Darkvater 64f34d322d (svn r8096) -Codechange: Invert the check if you are allowed to clear a road tile so there are not so many negations (too confusing) and added some comments to further clarify what happens. 18 years ago
KUDr 8ad471c321 (svn r8095) -Codechange: stuff that is not related to HAL moved from hal.h to gfx.h 18 years ago
Darkvater 6f51ba9418 (svn r8094) -Feature/Fix (r7523): Show the activated status of the GRF list after pressing 'apply'
in the newgrf window, instead of the local list.
18 years ago
Darkvater 95024bb21c (svn r8093) -Codechange: Add a function to get a string representation of an MD5SUM and use it. 18 years ago
KUDr 574ded3afd (svn r8092) -Codechange: header files with miscellaneous template classes (smart pointers, blob, array, hashtable, etc.) moved from src/yapf to src/misc as they can now be used anywhere. 18 years ago
Darkvater 47a7b714e3 (svn r8090) -[win32] Fix (r8089): for *nprintf 'ret = count' NOT 'ret = 0'... 18 years ago
Darkvater 1b6467b0e3 (svn r8089) -[win32] MS-borkedness: All *nprintf functions are broken, but we didn't test to fix it ourselves when 'len = count'. 18 years ago
tron d1449465c5 (svn r8088) -Regression (r8087): Fix japanese translation by adding missing { and removing spurious 0 18 years ago
miham 2e44df7b24 (svn r8087) [Translations] Japanese translation manually updated by ickoonite 18 years ago
miham e0f5bba141 (svn r8086) WebTranslator2 update to 2007-01-13 08:18:52
brazilian_portuguese - 203 changed by fukumori (203)
norwegian_nynorsk - 9 changed by pollux (9)
18 years ago
miham 86d12372b3 (svn r8085) [Translations] fixed the filenames to the scheme the others use, updated projectfile, sorry 18 years ago
miham 18ac722988 (svn r8084) [Translations] Added nynorsk translation (pollux), renamed norwegian to norwegian bokmal, moved nynorsk to finished languages, and updated project files.
Strings pending to nynorsk will be preserved if they are differ from the current translation
18 years ago
rubidium 98e462e564 (svn r8083) -Codechange: make a NetworkSocketHandler as base for all sockets and move a little of NetworkClientState functionality to the NetworkSocketHandler. Move the rest of the NetworkClientState to the new NetworkTCPSocketHandler class/struct, which is not yet implemented in an object oriented manner. The UDP socket handler now extends the NetworkSocketHandler instead of having a reference to a NetworkClientState. 18 years ago
miham 473ed1d351 (svn r8082) WebTranslator2 update to 2007-01-12 19:31:14
brazilian_portuguese - 62 changed by fukumori (62)
croatian   - 86 fixed, 2 changed by knovak (88)
esperanto  - 1 changed by LaPingvino (1)
18 years ago
peter1138 32bee79485 (svn r8081) -Fix (r8075): Use a copy of the resolver object instead of the using the existing one. This fixes problems with the object scope setting. 18 years ago
Darkvater a5cd65b3f9 (svn r8080) -Codechange (r8079): Move the *WHOLE* performance code into the #ifndef and some style changes. 18 years ago
KUDr ae7d52e5aa (svn r8079) -Fix [YAPF]: float division by zero when calculating stats (YAPF cache hit ratio). Caused BSOD on Win9x. (thanks 3iff for report, Darkvater for help) 18 years ago
rubidium cf01dc9b16 (svn r8078) -Codechange: rewrite UDP part of the network code to make use classes. This is only one of the many steps to really cleanup the network code. 18 years ago
Darkvater d34bdd8900 (svn r8077) -Cleanup: Restructure some switch() statements' default case when they're unreachable 18 years ago
maedhros 129326425b (svn r8075) -Feature: Add support for variable 7E - subroutines. (peter1138) 18 years ago
rubidium d073693827 (svn r8074) -Fix (FS#537, r7555, r5749): revert r7555 because it was really wrong and fix the off-by-one error due to truncation that was supposedly fixed by r7555. 18 years ago
miham ef0504afb1 (svn r8073) WebTranslator2 update to 2007-01-12 08:35:48
brazilian_portuguese - 92 changed by fukumori (92)
18 years ago
Darkvater a3e33358df (svn r8071) -Fix (r5999): [FS#536] Merging 32bit dates broke the inauguration date of companies in
oldloader: "The year the company was inaugurated (full value, not base-1920)"
 (Marcin Grzegorczyk's TTD internals site)
18 years ago
glx 101f544ca8 (svn r8070) -Fix r5815: missing initialisation could cause crash when loading 24bpp BMP heightmap 18 years ago
miham a68def49db (svn r8069) [Translations] Moved japanese from unfinished, good job translators 18 years ago
miham eb8a0d1440 (svn r8068) WebTranslator2 update to 2007-01-11 19:35:48
croatian   - 93 fixed by knovak (93)
greek      - 10 fixed by Kesnar (10)
japanese   - 506 fixed by ickoonite (506)
18 years ago
KUDr 28e969924b (svn r8066) - Codechange: MallocT(), CallocT(), ReallocT() now return the pointer to allocated memory instead of modifying the pointer given as parameter 18 years ago
celestar 5675956443 (svn r8065) -Feature: The station list does now remember the sort settings 18 years ago
peter1138 1670fec525 (svn r8063) -Codechange: When evaluating newgrf varaction2s the 'last value' should start off at 0, and the result of the operation is remembered. 18 years ago
peter1138 be3e723f51 (svn r8062) -Codechange: change newgrf varaction2 value from signed to unsigned 18 years ago
bjarni 49512cf4dc (svn r8061) -Fix r8055: obj-c can't handle templates
We will need to figure out a nicer solution for this, but now OSX compiles again
18 years ago
celestar 582d8701ec (svn r8058) -Codechange: Replaced an occurence of (uint32)-1 by UINT_MAX 18 years ago
celestar e12cf8503d (svn r8057) -Codechange: Declare the "new" max template as static line. 18 years ago
celestar c56ee62ade (svn r8056) -Codechange: Remove swap_byte, swap_byte, and siblings (some were not used anyway) and replace them by our SwapT implementation 18 years ago
celestar 08de6b082a (svn r8055) -Codechange: Replace the different max, dmax, maxu whatever macros by a simple template function max(), that requires two arguments of the same type. While I'm at it change a variable called "max" to "maxval" in a function that calls max(). 18 years ago
peter1138 0677847569 (svn r8054) -Codechange: Use a template function instead of a macro for evaluating NewGRF var adjusts 18 years ago
miham 97b20c3fa7 (svn r8053) [Translations] Reverted german translators work (moewe2), since it looks suspicious 18 years ago
KUDr 8553b0dad5 (svn r8052) - Codechange: RemoveFirstTrack() and RemoveFirstTrackdir() now accept pointer to TrackBits/TrackdirBits instead of reference. 18 years ago
miham b71fa18db3 (svn r8051) WebTranslator2 update to 2007-01-11 07:24:01
german     - 1 deleted by moewe2 (1)
greek      - 3 fixed by Kesnar (3)
japanese   - 273 fixed by ickoonite (273)
18 years ago
belugas 04694afabb (svn r8050) -Codechange: Rename map member extra to m6, since its usage has been widden.
Only doc landscape_grid.html has been updated, landscape.html will be done latter.
-CodeChange: Replace a direct access to m6 with SetTropicZone in InitializeLandscape, as it is the only part of m6 still untouched without the brute-forced m6=0
18 years ago
Darkvater e29124d48b (svn r8049) -Regression (r7369): Removing certain news windows could cause a crash due to only
one MoveToNextItem() in DeleteVehicleNews (added in r3757). To work correctly do not
 reset _forced_news to INVALID_NEWS when a new item is added, but leave it.
-Codechange: ShowLastNewsMessage has been changed so that it actually works, wraps
 around correctly (array as FIFO) and shows the previous news item if the current 
 news item is open (previously this was doubly shown).
18 years ago
Darkvater c0a516b8e5 (svn r8044) Regression (r8038): Crash on allocating bridge memory (peter1138) 18 years ago
rubidium e60d61e0cd (svn r8043) -Fix (8028): forgot setting a variable. 18 years ago
orudge 5652c39bdd (svn r8042) - Fix: OS/2 compilation with GCC (thanks to Paul Smedley and TrueBrain for their help) 18 years ago
peter1138 28712fe837 (svn r8041) -Regression (r7564): [NewGRF] check_length should skip further processing if a length is too short, so give the function a return value 18 years ago
miham c662779fd4 (svn r8039) WebTranslator2 update to 2007-01-10 19:58:43
brazilian_portuguese - 15 changed by fukumori (15)
danish     - 23 changed by MiR (23)
greek      - 12 fixed by Kesnar (12)
japanese   - 282 fixed by ickoonite (282)
slovenian  - 1 changed by Necrolyte (1)
turkish    - 2 changed by jnmbk (2)
ukrainian  - 30 changed by znikoz (30)
18 years ago
rubidium a7d0cdf95f (svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b. 18 years ago
rubidium 52ffd840cb (svn r8034) -Fix (r8033): aircraft_cmd.c was not renamed. 18 years ago
KUDr 07c30785ab (svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp) 18 years ago
rubidium dc44d34107 (svn r8030) -Fix: segmentation fault when removing a town in the scenario editor while having the query tool window open for one of the town's tiles. 18 years ago
rubidium cadd82434c (svn r8029) -Fix (7759): somehow the old configure script was not removed. 18 years ago
rubidium 974bcd9683 (svn r8028) -Fix: overflow of ticks was not handled properly, possibly resulting a non-reacting gameserver/gameclient. 18 years ago
celestar 241ebb5890 (svn r8027) -Fix (FS#486) If a pause command is issues, it will now pause the game even if shift is pressed instead of giving a cost estimate of 0. This fixes a problem where the server does not pause_on_join when the player on the interactive server has the shift button pressed. (Thanks to pvz for the report and the fix) 18 years ago
celestar 077448ead7 (svn r8026) -Fix (r2441) When taking up cargo that is transferring, trains will now also have the virtual profit deducted. 18 years ago
maedhros cfcf0c2451 (svn r8014) -Codechange (r7573): When a tile is cleared, empty the general purpose bits in
extra as well, unless they are (or could be) used for bridges. This means these
bits don't have to be cleared seperately when non-bridgeable tiles are removed.
18 years ago
Darkvater c5867c93f7 (svn r8013) -Codechange (r6921, rUnknown): Show the error message of corrupt or missing (own) files
through a ShowInfo(F). This way windows users also see this message and bugs such as
 FS#528 will not happen anymore. Put ShowInfo(F) error output to stderr and not stdout.
18 years ago
miham 44e9bc600c (svn r8012) WebTranslator2 update to 2007-01-09 20:43:03
bulgarian  - 3 fixed, 68 changed by groupsky (71)
danish     - 45 changed by ThomasA (4), MiR (41)
finnish    - 2 fixed by pallokala (2)
frisian    - 2 changed by talzaroff (2)
greek      - 40 fixed, 1 changed by Kesnar (41)
italian    - 2 changed by sidew (2)
swedish    - 2 fixed, 1 deleted, 55 changed by ChrillDeVille (58)
18 years ago
peter1138 f74531ee60 (svn r8007) -Codechange: Change _vehicle_position_hash from VehicleID to Vehicle*. This removes the need for look ups by index. Also declare the array static. 18 years ago
rubidium 13c922d8e4 (svn r8000) -Codechange: drop UDP packets when their internal size does not match the received size. If that is the case, the packet was not received in one piece (or got somehow mangled with another packet), which will cause us to drop the packet later on because we are (for example) trying to read beyond the end of the packet. 18 years ago
miham 541039639b (svn r7987) [Translations] Slovenian is no longer unfinished (no bad strings) 18 years ago
miham cbeb1b2296 (svn r7986) WebTranslator2 update to 2007-01-09 08:20:27
brazilian_portuguese - 72 changed by fukumori (72)
hungarian  - 2 fixed by miham (2)
slovenian  - 191 fixed by Necrolyte (191)
18 years ago
Darkvater 35ea3335ce (svn r7984) -Fix: out-of-bounds read access on _clients array (Quark) 18 years ago
miham 99cb1dd612 (svn r7983) WebTranslator2 update to 2007-01-08 19:37:40
brazilian_portuguese - 111 changed by fukumori (111)
esperanto  - 11 changed by LaPingvino (11)
japanese   - 116 fixed by ickoonite (116)
18 years ago
peter1138 c284f92c83 (svn r7982) -Codechange: Enumify graphics blitter modes. 18 years ago
celestar 8da2dbdf3b (svn r7976) -Fix: (SF 1629560) Rail vehicles can no longer enter tunnels or bridgeheads with wrong railtype 18 years ago
miham 854b7647f0 (svn r7975) WebTranslator2 update to 2007-01-08 09:13:29
brazilian_portuguese - 6 fixed, 2 changed by fukumori (8)
danish     - 5 changed by MiR (3), ThomasA (2)
estonian   - 1 changed by kristjans (1)
frisian    - 82 fixed, 85 changed by ikkejw (82), talzaroff (85)
greek      - 64 fixed, 3 changed by Kesnar (67)
italian    - 1 changed by sidew (1)
japanese   - 92 fixed by ickoonite (92)
polish     - 1 changed by meush (1)
slovak     - 7 changed by lengyel (7)
slovenian  - 160 fixed by Necrolyte (160)
turkish    - 2 changed by jnmbk (2)
18 years ago
Darkvater b207d3f3eb (svn r7969) *whistle* 20067 has not yet come to pass; it's 2007 (I think my search&replace broke) 18 years ago
Darkvater a115bd8e92 (svn r7968) -Update copyright/etc information to 2007 18 years ago
Darkvater 786c8496ec (svn r7966) -Fix (r7936): Eh AxisToTrack returns Track not Axis, thanks KUDr 18 years ago
Darkvater 0a44c03edd (svn r7936) -Fix (r4987, old-rev): Only update the signals and YAPF cache on a DC_EXEC action for bridge-building 18 years ago
rubidium acdeae8cc8 (svn r7932) -Fix (r7931): committed a few files too much :( (the ones I used to test the new masterserver) 18 years ago
rubidium 2a596e09f1 (svn r7931) -Fix (r7759): multiple (different) -O flags made compilations with the wrong optimisations. 18 years ago
Darkvater de11447d08 (svn r7930) -Fix: [FS#520] Wrong GRF flag set for gradual loading (mart3p) 18 years ago
miham ac8c0970df (svn r7905) WebTranslator2 update to 2007-01-06 15:28:31
estonian   - 5 changed by kristjans (5)
frisian    - 669 fixed, 17 changed by ikkejw (574), Bouke (2), talzaroff (110)
italian    - 1 changed by sidew (1)
turkish    - 2 fixed, 16 changed by jnmbk (18)
18 years ago
peter1138 68de4efccf (svn r7901) -Codechange: Remove some misplaced externs and use extern, not VARDEF, in the place they should be... 18 years ago
miham 3695b19744 (svn r7896) WebTranslator2 update to 2007-01-06 08:24:52
italian    - 211 changed by sidew (211)
lithuanian - 66 changed by Domas (66)
slovenian  - 131 fixed by ThePianoGuy (31), Necrolyte (100)
18 years ago
rubidium 3f3af614a4 (svn r7888) -Change: add documentation about the 'on-the-wire' structure of the network game information request and reply packets. 18 years ago
bjarni 1082ab40fa (svn r7887) -Fix: [OSX] Endian32_Swap should always return a uint32, not a long unsigned int
This kills an OSX specific warning in newgrf_config.c
  Ensured that Endian16_Swap returns uint16 as well, even though that one didn't result in any warnings (yet)
18 years ago
bjarni fd24669dee (svn r7886) -Fix: [OSX] control+enter will no longer toggle fullscreen as it collided with other hotkeys (pv2b)
People should use command+enter as it was originally intended (this key combo also worked before this commit)
18 years ago
miham 566288adf0 (svn r7884) WebTranslator2 update to 2007-01-05 19:28:08
bulgarian  - 14 changed by groupsky (14)
croatian   - 159 fixed, 8 changed by knovak (167)
danish     - 30 changed by ThomasA (4), MiR (26)
estonian   - 41 changed by kristjans (41)
japanese   - 47 fixed, 1 changed by PouncingAnt (48)
lithuanian - 31 fixed, 68 changed by Domas (99)
18 years ago
truelight 82efaa7469 (svn r7882) -Fix: OS2 is defined as UNIX too, but not for networking 18 years ago
peter1138 5220796d65 (svn r7864) -Codechange: Offset engines/wagons in the train details window by half the train length modifier. This stops overflowing wagons in sets that use 32px lengths. 18 years ago
Darkvater 00558b779d (svn r7861) -Fix (r7823): Crash when oldest news was deleted. First check the index for oldest news
and THEN decrease index, not the other way around.
18 years ago
miham 37abff2c47 (svn r7857) WebTranslator2 update to 2007-01-05 08:35:59
lithuanian - 2 fixed, 278 changed by Domas (280)
slovenian  - 11 fixed by Necrolyte (11)
18 years ago
rubidium 5e4c157282 (svn r7847) -Codechange: use NetworkUDPClose instead of calling closesocket directly. 18 years ago
Darkvater 6f568a4d9c (svn r7843) -Codechange (r7840): left out word 'file' making crash-text look un-english-ish. 18 years ago
Darkvater f67f5faf10 (svn r7840) -Codechange: Change the crash window a bit. Tell about Flyspray and crash.dmp. Remove
text about submitting crash report.
18 years ago
rubidium e534f747b5 (svn r7836) -Codechange: some constness for network/core. 18 years ago
rubidium 2a2020c34c (svn r7834) -Codechange: cleanup the includes of network/core a little; include headers in headers when the header needs types/constants defined in them. 18 years ago
rubidium 35b7e0a1b8 (svn r7833) -Fix (r7829): forgot to add debug.h to the includes. 18 years ago
peter1138 3d6e71de9f (svn r7831) -Codechange: [NewGRF] Do not mark as unsafe those NewGRFs that set their own parameters (via action D) and/or change only bridge sprite table layouts (action 0, property D). 18 years ago
rubidium 5e276359a4 (svn r7830) -Codechange: let NetworkCoreInitialize return a bool, so we have to set _network_available only once. 18 years ago
rubidium b722317116 (svn r7829) -Codechange: move the network (core) initialization/shutdown functions into network/core, so the can be reused in the masterserver_updater. 18 years ago
miham b65e178693 (svn r7828) WebTranslator2 update to 2007-01-04 19:28:37
danish     - 8 changed by ThomasA (8)
estonian   - 101 changed by kristjans (101)
italian    - 1 changed by sidew (1)
japanese   - 17 fixed, 11 changed by PouncingAnt (28)
18 years ago
rubidium 72b2b15cbd (svn r7825) -Codechange: make NetworkUDPClose close a single UDP socket. Use NetworkUDPStop to close all opened udp sockets (those were called NetworkUDPClose). 18 years ago
Darkvater ffa7673aaa (svn r7823) -Fix (r7384 / r7368 / r3757 / r7388): News windows could still cause crashes because
DeleteVehicleNews shuffles around _news_items which can wreak havoc with the NewsItem*
 of a currently open news window. While here also correctly update _current_news and
 _forced_news for the same reasons. Should really work now.
18 years ago
rubidium 81235fc16b (svn r7821) -Fix: be more strict about the socket from where packets arrive. Do not accept requests about the game server on the master/client socket, do not accept master server acks on the client/server socket, etc. 18 years ago
miham bd37b23bd2 (svn r7819) WebTranslator2 update to 2007-01-04 07:57:17
japanese   - 78 fixed by ickoonite (78)
slovenian  - 26 fixed, 317 changed by Necrolyte (343)
ukrainian  - 3 fixed, 2 changed by znikoz (5)
18 years ago
rubidium 525118c7b3 (svn r7818) -Fix (r7751): wrote some data to the wrong network packet. 18 years ago
Darkvater 2ebf16e95d (svn r7817) -Fix (r7573): Bridge merge broke building canals at level 0. 18 years ago
glx 7d381816c9 (svn r7812) -Fix: rail station build window was not correctly updated after station_spread change 18 years ago
KUDr 3ff365e310 (svn r7810) -Fix: FS#504 Building airport whose size exceeds max station spread-out caused assert. (Zuu) 18 years ago
miham 85e7702931 (svn r7806) [Translations] Lithuanian is no longer unfinished, thanks for the current translators! Good work, keep it up! 18 years ago
miham bd7ec2710a (svn r7803) WebTranslator2 update to 2007-01-03 19:37:39
bulgarian  - 5 fixed by groupsky (5)
croatian   - 72 fixed by knovak (72)
danish     - 25 changed by MiR (25)
italian    - 1 changed by sidew (1)
norwegian  - 2 fixed by oletk (2)
slovenian  - 241 fixed, 143 changed by Necrolyte (384)
18 years ago
rubidium 16b3f41af7 (svn r7802) -Feature: make it possible to override the bind address and port of a dedicated server from the command line. 18 years ago
rubidium db5f61c43e (svn r7801) -Feature: add command line option to prevent saving of highscore and configuration on exit and a console command to manually initiate a configuration save (Aloysha). 18 years ago
peter1138 eeb1ad8922 (svn r7800) -Fix (r7787): Remove Czech strings with .news or .subs case. 18 years ago
peter1138 eee7138b16 (svn r7797) -Codechange: Replace static _sprite_ptr and associated arrays with dynamic array to allow variable number of sprites. This does not change the sprite limit. 18 years ago
rubidium 20f12958d5 (svn r7796) -Fix (r7759): cygwin does not need to rewrite the paths for strgen.
-Fix (r7759): supply the correct flags to cygwin to make it compile.

Note: cygwin itself is 'broken'. Known issues with cygwin are:
 - bash does not work when including files that have dos line ending (\r\n).
   This causes the strange errors in config.lib. The solution is running:
     dos2unix config.lib
 - the windows-native svn does not work (though it previously did). The
   solution for this is to install the cygwin svn.
 - libfreetype2's freetype-config --cflags does not have ft2build.h in the
   path include search path. The workaround for this is to copy 
   /usr/include/ft2build.h to /usr/include/freetype2/. Also linking does 
   not work for static builds as freetype-config does not support that.
   You have to add the '--disable-static' flag when running './configure'.
 - libpng12 does not work with static building either. You have to add
   the '--disable-static' flag when running './configure' too.
18 years ago
peter1138 969194629e (svn r7795) -Codechange: [NewGRF] When safety checking, allow an Action E that force activates the GRF. Unfortunately this requires knowing the GRF ID in advance (before the Action 8) so the static GRFs are now scanned twice on start up, once for the GRF ID, and then for the safety check. (This fix allows unifont.grf to be used.) 18 years ago
peter1138 a972c406dd (svn r7794) -Cleanup: Remove obsolete, never-used landscape rotation code. And spell obsolete correctly. 18 years ago
peter1138 96bede230b (svn r7793) -Cleanup: Remove obsolute, never-used old spritecache LRU code 18 years ago
miham e2a35c1217 (svn r7787) WebTranslator2 update to 2007-01-03 07:49:50
czech      - 2 changed by joeprusa (2)
danish     - 80 changed by MiR (80)
esperanto  - 1 fixed, 3 changed by LaPingvino (4)
estonian   - 54 changed by kristjans (54)
japanese   - 177 fixed, 65 changed by ickoonite (242)
lithuanian - 57 changed by Domas (57)
slovenian  - 38 fixed, 262 changed by Necrolyte (300)
18 years ago
Darkvater f8fc5f2a3d (svn r7772) -Fix (r7759): [win32] Paths to icon files were wrong. 18 years ago
bjarni 9db571c6db (svn r7767) -Fix r7751: [OSX] nameclash in includes. ALIGN was defined in both a library and macros.h
we undefines the library one since we don't need that one anyway
18 years ago
bjarni e5722f8820 (svn r7766) -Fix: [OSX] removed incorrect debug message about corrupted/missing grf files
The md5 code now looks in the secundary data dir as well
  Note: OSX builds can still give the incorrect message: dbg: [sl] Cannot open savegame 'data/opntitle.dat' for saving/loading.
18 years ago
peter1138 b575f1a6fc (svn r7760) -Codechange: Debug messages for newgrf showed the starting sprite, not the current sprite index. Also only output the debug message during activation, when sprites are loaded. 18 years ago
rubidium 013df98f79 (svn r7759) -Merge: makefile rewrite. This merge features:
- A proper ./configure, so everything needs to be configured only once, not for every make.
 - Usage of makedepend when available. This greatly reduces the time needed for generating the dependencies.
 - A generator for all project files. There is a single file with sources, which is used to generate Makefiles and the project files for MSVC.
 - Proper support for OSX universal binaries.
 - Object files for non-MSVC compiles are also placed in separate directories, making is faster to switch between debug and release compiles and it does not touch the directory with the source files.
 - Functionality to make a bundle of all needed files for for example a nightly or distribution of a binary with all needed GRFs and language files.

Note: as this merge moves almost all files, it is recommended to make a backup of your working copy before updating your working copy.
18 years ago