maedhros
5d6d180be9
(svn r8322) -Codechange: Rename unk61A and unk61C to something a little more descriptive.
2007-01-21 19:19:25 +00:00
tron
900113f8d2
(svn r8321) -Fix
...
Reduce the size of EngineInfo (from 28 to 24 bytes) by moving one of its attributes
2007-01-21 19:00:31 +00:00
tron
5438336102
(svn r8320) -Fix
...
Simplify TrainPowerChanged() somewhat by eleminating code duplication
2007-01-21 18:46:19 +00:00
maedhros
60864af5d1
(svn r8319) -Codechange: Remove the remaining colours from GraphDrawer as they're also the same everywhere.
2007-01-21 18:42:15 +00:00
miham
43e275f758
(svn r8318) -Update: WebTranslator2 update to 2007-01-21 19:29:35
...
brazilian_portuguese - 10 changed by fukumori (10)
polish - 5 fixed by meush (5)
simplified_chinese - 9 fixed, 191 changed by Fishingsnow (200)
slovak - 1 fixed by lengyel (1)
slovenian - 1 changed by ThePianoGuy (1)
2007-01-21 18:30:21 +00:00
maedhros
3ba288f8ef
(svn r8317) -Codechange: Remove GraphDrawer::bg_line_color since it was the same everywhere it was set.
2007-01-21 18:07:35 +00:00
rubidium
a93eb4b8d8
(svn r8316) -Codechange: move the GRF ID and MD5 checksum from GRFConfig to GRFIdentifier so it can be reused.
2007-01-21 17:29:38 +00:00
truelight
365dc05cd7
(svn r8315) -Fix: use ShowInfo over fprintf(stderr, as Windows doesn't always have a stderr visible/available
2007-01-21 17:09:32 +00:00
tron
3d5acc1450
(svn r8314) -Fix
...
-Codechange: Move the railtype from EngineInfo to RailVehicleInfo, because having a railtype for non-rail vehicles isn't that useful
2007-01-21 16:08:18 +00:00
maedhros
667c4c0a0a
(svn r8312) -Fix (r8038, sort of): Operating profit and the company value can be negative,
...
so don't put them in an unsigned variable before drawing them in the various
graphs. Although the code didn't change, this only seems to have broken since
we started compiling it as C++.
2007-01-21 15:03:37 +00:00
truelight
21c7801345
(svn r8310) -Fix r8309: it is wise to put #endifs in the right place ;)
2007-01-21 14:36:08 +00:00
truelight
b488d9d420
(svn r8309) [WinCE] -Fix: WinCE doesn't know resolution changing
...
-Fix: WinCE doesn't know GetKeyboardState
-Fix: made a replacement of GetCurrentDirectory, where CurDir is assumed to be the dir the executable is located (esoftinteractive.com)
-Fix: the GCC compiler is more happy if the WinMain is called that
-Fix: a really old typo (missing ')') ;)
-Fix: GdiFlush() isn't supported on WinCE
2007-01-21 14:32:40 +00:00
truelight
4daaa0dcfb
(svn r8308) [WinCE] -Revert r5764: in case of WinCE, use the code for FileExists as it was in pre-r5764 for Win32 (tnx Darkvater)
2007-01-21 14:21:31 +00:00
truelight
84cd8f49df
(svn r8307) [WinCE] -Fix: for now disable sound and music. That will be done later.
2007-01-21 14:19:44 +00:00
truelight
7ee1ff5af1
(svn r8306) [WinCE] -Fix: some functions don't exists in WinCE, so give an alternative where possible
2007-01-21 14:19:18 +00:00
truelight
465cc38811
(svn r8305) -Codechange: defining 'static const' in a header is a bit weird.
...
Above that, wince-gcc gave "unused variable" on every file which included airport.h... pretty annoying ;)
2007-01-21 14:15:38 +00:00
bjarni
a21e290995
(svn r8303) -Codechange (r8293): default is moved to the front of the switch in ShowVehicleListWindowLocal()
2007-01-21 13:16:31 +00:00
maedhros
babda828ab
(svn r8301) -Codechange: Move the code relating to the sign list window from graph_gui.cpp to a file of its own: signs_gui.cpp.
2007-01-21 12:35:35 +00:00
maedhros
cf06eae3bb
(svn r8300) -Codechange: Add a prototype for DrawPlayerIcon to players.h and include that
...
instead of using externs. Also move DrawPlayerIcon from graph_gui.cpp to
players.cpp.
2007-01-21 11:49:18 +00:00
tron
9e7b066522
(svn r8299) -Fix
...
Remove unreachable code
2007-01-21 08:04:14 +00:00
bjarni
8ca4a7d8d9
(svn r8296) -Fix: GenerateVehicleSortList() tried to put a TileIndex into an uint16
...
-Fix: CmdMassStartStopVehicle() tried to put a TileIndex into an uint16
Those two bugs were unrelated to each other and unrelated to r8295, even though that commit touched the code in question
2007-01-21 01:25:59 +00:00
bjarni
1995cdf00b
(svn r8295) -Cleanup: merged arguments station, order and depot_airport_index for GenerateVehicleSortList() and BuildVehicleList() into one uint16 argument
...
It turned out that all 3 arguments were the same at all the places those functions are called, so there was no point in having more than one
2007-01-21 01:07:15 +00:00
bjarni
24a8b16197
(svn r8294) -Fix: deleting a vehicle with shared orders, but no orders would fail to reset prev_shared and next_shared
...
-As a result, vehicles in the game could end up having prev/next pointers to vehicles, that was no longer in the game
2007-01-21 00:13:39 +00:00
bjarni
44494a8e93
(svn r8293) -Codechange: overloaded ShowVehicleListWindow() so it can open all types of vehicle lists (depending on arguments)
...
- Also removed some unneeded arguments
- this also allows removing an if-else cascade in ShowVehicleListWindowLocal()
2007-01-21 00:01:47 +00:00
miham
799fbda05a
(svn r8290) -Update: WebTranslator2 update to 2007-01-20 19:46:14
...
brazilian_portuguese - 69 changed by fukumori (69)
frisian - 48 fixed by ikkejw (48)
russian - 57 changed by DarkFenX (57)
ukrainian - 5 changed by znikoz (5)
2007-01-20 18:50:50 +00:00
miham
28681f0419
(svn r8289) [Translations] -Fix: translators sent some offline translation for simplified chinese (Fishingsnow) and japanese (ickoonite)
2007-01-20 18:42:27 +00:00
bjarni
7c78bb79d6
(svn r8288) -Fix: [OSX] compiling with debug enabled now works again
...
-This is once again an obj-C vs C++ issue. I need to make a nice and permanent solution soon, but I need the debugger right now
2007-01-20 11:26:16 +00:00
peter1138
2a732f2d3c
(svn r8287) -Fix (r8286): forgot to check for newline format, sorry...
2007-01-20 09:49:29 +00:00
peter1138
b01d4375e9
(svn r8286) -Add: Korean translation by Ezi
2007-01-20 09:19:37 +00:00
KUDr
5775115eba
(svn r8284) -Fix (r8277): g++ compilation error: missing brackets in sizeof
2007-01-19 22:41:50 +00:00
peter1138
23bf684a5d
(svn r8283) -Fix (r8128): Custom waypoint drawing used wrong bits since bitshuffling occurred. Also update with other station drawing changes (code duplication,
...
eh?)
2007-01-19 21:40:10 +00:00
miham
a5b864c932
(svn r8281) -Update: WebTranslator2 update to 2007-01-19 19:32:57
...
brazilian_portuguese - 2 fixed, 49 changed by fukumori (51)
bulgarian - 1 fixed by kokobongo (1)
2007-01-19 18:33:30 +00:00
peter1138
6228127ae9
(svn r8280) -Codechange: Remove unnecessarily complex assignment of waypoint string ID.
2007-01-19 17:46:44 +00:00
Darkvater
7201689a17
(svn r8279) -Regression (r8274): Removing signals could fail under certain circumstances (not the proper bits of p1/p2 were set to trackbits). Moved trackbits back to bits 0..2, ctrl to 3, semaphore to 4. Also lower the decision of the ctrl-override of signal/semaphore from the GUI into the cmd function since we are passing the ctrl-bit anyways. Bug(s) found by Frostregen; thanks
2007-01-19 17:44:11 +00:00
KUDr
a2eda30afa
(svn r8277) -Fix (r8038): assert on game exit when waypoints were used. The static variable of type Station (inside ComposeWaypointStation) replaced by byte array so no destructor is called for it on exit.
2007-01-19 16:01:43 +00:00
tron
81e88a2a7c
(svn r8276) -Fix
...
Change the signature of Swap() to be less error prone, i.e. pass the variables to be swapped by reference instead of passing pointers to the variables.
Just do Swap(x, y) instead of Swap(&x, &y). This prevents accidents when the variables are pointers.
2007-01-19 11:47:48 +00:00
tron
659adc7c42
(svn r8275) -Fix
...
Factor common data tables and use a bit more sensible names
2007-01-19 06:08:04 +00:00
Darkvater
53457d1acb
(svn r8274) -Codechange (r8151): Move the automatic semaphore/signal checks inside the CMD_ functions where they are supposed to be. Achieve this by adding a seperate bit to p1/p2 to hold the CTRL-modifier. While here, use proper types, and 'unify' the parameter bit-meanings. 0 - ctrl-pressed, 1 - signal/semaphore, 2-4 - trackbits, 5 - remove (internal), 24-31 - drag density.
2007-01-19 00:01:52 +00:00
KUDr
c791bbe54e
(svn r8273) -Fix: return value from clamp was ignored
2007-01-18 23:48:04 +00:00
KUDr
b42940f1db
(svn r8272) -Fix (r8038): signed/unsigned change - PlayerID is now enum (signed) and was byte so test for PlayerID validity needed to be updated (Darkvater)
2007-01-18 23:45:58 +00:00
miham
dcadc6c743
(svn r8267) [Translations] -Fix: (r8266) fixed the ownname and the isocode of the russian language
2007-01-18 22:24:11 +00:00
miham
020fc4feb4
(svn r8266) -Update: WebTranslator2 update to 2007-01-18 19:42:06
...
afrikaans - 26 fixed, 63 changed by TrueTenacity (89)
dutch - 1 fixed by habell (1)
esperanto - 1 fixed by LaPingvino (1)
russian - 26 changed by DarkFenX (26)
turkish - 1 fixed by jnmbk (1)
ukrainian - 6 changed by znikoz (6)
2007-01-18 18:42:50 +00:00
Darkvater
75a63767ad
(svn r8254) -Merge: Release changes from the 0.5 branch back to trunk. This ensures an updated changelog, readme, et.
2007-01-18 15:39:58 +00:00
Darkvater
6b3e59474f
(svn r8253) -Codechange: Be more strict about language generation and fail any languages not having the mandatory ##name, ##ownname and ##isocode pragma's.
2007-01-18 15:27:57 +00:00
Darkvater
4ad7f99e82
(svn r8252) -Regression(r8204): WT2 commit removed ##isocode from Russian, resulting in a clean
...
start of openttd being in russian instead of in english.
2007-01-18 15:26:52 +00:00
Darkvater
3afe4b8a7c
(svn r8240) -Fix (r8013): Put the output of -h to stdout and not to stderr (through ShowInfo)
2007-01-18 14:08:56 +00:00
Darkvater
4dd029a393
(svn r8239) -Regression (r7278): Help window was empty for UNICODE builds
2007-01-18 14:06:30 +00:00
KUDr
f0e463ecca
(svn r8231) -Fix (r8125): MP desync caused by calling Random() from station constructor. This was wrong because station constructor is called also when loading savegame and when player tries to build station when it is not sure that it will succeed (thanks Rubidium)
2007-01-18 09:34:44 +00:00
Darkvater
f6d68ab378
(svn r8218) -Codechange: Increase spritecache size to 2MB. This will vastly improve performance when using (lots of) grf files. You can change it yourself easily with the SPRITE_CACHE_SIZE compile flag. (peter1138).
2007-01-17 23:25:19 +00:00
peter1138
554a756b67
(svn r8214) -Fix (r8038): The fast forward flag stores 2 bits, not 1. Remember the
...
whole thing when turning off FF for autosave. This stops FF getting stuck on
if the FF key is released during the save.
2007-01-17 22:44:49 +00:00
tron
d80009c611
(svn r8212) -Fix
...
Remove the unnecessary attribute RoadStop::used. The same information can be derived from RoadStop::xy
2007-01-17 22:32:34 +00:00
peter1138
323898cb97
(svn r8211) -Codechange: (NewGRF) Implement callback 2D, explicit vehicle colour map
...
selection.
2007-01-17 22:19:12 +00:00
tron
4ff9b8a2a7
(svn r8207) -Fix
...
Remove the write-only attribute RoadStop::station
2007-01-17 21:14:17 +00:00
miham
6b93e14ade
(svn r8206) [Translations] -Fix: Fixed r8193, converted the html notations back to UTF8 characters
2007-01-17 21:05:39 +00:00
miham
6f006e16f8
(svn r8204) -Fix: reverted r8202, since it did not solve all the problems, since ALL language changes done today are garbage due to a quick bugfix in WT2 which introduced another, much more serious bug: put an utf8_to_htmlcode() call to a wrong place
...
I will fix the affected language files soon (20-30 minutes)
Please excuse me for this whole problem :-(
2007-01-17 20:37:25 +00:00
tron
0b710695a5
(svn r8203) -Fix:
...
Use initialisers, reduce variable scope, remove spurious whitespace, fix format string to make it readable
2007-01-17 20:34:29 +00:00
miham
2655cbc3b4
(svn r8202) -Fix: r8193: russian.txt changes somehow became garbage
2007-01-17 20:29:45 +00:00
rubidium
e3b79e5ecc
(svn r8198) -Codechange: two global variables are not needed when network is disabled.
2007-01-17 19:55:18 +00:00
miham
7d59b56f37
(svn r8193) -Update: WebTranslator2 update to 2007-01-17 19:42:11
...
brazilian_portuguese - 3 changed by fukumori (3)
danish - 21 changed by MiR (21)
german - 1 fixed by Neonox (1)
japanese - 24 changed by ickoonite (24)
norwegian_nynorsk - 1 changed by pollux (1)
russian - 5 fixed, 75 changed by DarkFenX (80)
slovenian - 57 changed by Necrolyte (57)
swedish - 1 fixed by daishan (1)
2007-01-17 18:43:03 +00:00
peter1138
c6aeab5cb8
(svn r8186) -Fix (FS#557): Apply railtype offset to station graphics if no custom station is in use.
2007-01-17 12:57:35 +00:00
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
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.
2007-01-14 16:44:52 +00:00
KUDr
6af105993c
(svn r8117) -Fix (r8114): 'no matching operator delete found' warning on VC8
2007-01-14 13:21:02 +00:00
tron
a63fae4202
(svn r8116) Undo r8113
2007-01-14 13:09:17 +00:00
tron
f2e8d4220d
(svn r8114) Allocate struct GRFText in the C++ way
2007-01-14 08:37:16 +00:00
tron
302b54b468
(svn r8113) Fix the #include path to table/strings.h
2007-01-14 08:34:38 +00:00
glx
378194d6fe
(svn r8111) -Fix r8106: silence warnings
2007-01-13 21:28:46 +00:00
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.
2007-01-13 18:55:54 +00:00
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)
2007-01-13 18:32:50 +00:00
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.
2007-01-13 17:44:11 +00:00
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.
2007-01-13 17:42:50 +00:00
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
2007-01-13 17:23:02 +00:00
Darkvater
43343d640b
(svn r8102) -Cleanup: Remove unreachable code (r8096), useless cast
2007-01-13 15:55:22 +00:00
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.
2007-01-13 15:50:36 +00:00
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.
2007-01-13 15:00:40 +00:00
tron
e043c6cef7
(svn r8097) Replace strlen() {==,!=,>} 0 by the more concise {,!}StrEmpty(). Additionally the test takes O(1) instead of O(n) now
2007-01-13 15:00:16 +00:00
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.
2007-01-13 14:48:47 +00:00
KUDr
8ad471c321
(svn r8095) -Codechange: stuff that is not related to HAL moved from hal.h to gfx.h
2007-01-13 14:43:46 +00:00
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.
2007-01-13 14:01:05 +00:00
Darkvater
95024bb21c
(svn r8093) -Codechange: Add a function to get a string representation of an MD5SUM and use it.
2007-01-13 13:47:57 +00:00
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.
2007-01-13 13:33:36 +00:00
Darkvater
47a7b714e3
(svn r8090) -[win32] Fix (r8089): for *nprintf 'ret = count' NOT 'ret = 0'...
2007-01-13 13:13:32 +00:00
Darkvater
1b6467b0e3
(svn r8089) -[win32] MS-borkedness: All *nprintf functions are broken, but we didn't test to fix it ourselves when 'len = count'.
2007-01-13 13:06:18 +00:00
tron
d1449465c5
(svn r8088) -Regression (r8087): Fix japanese translation by adding missing { and removing spurious 0
2007-01-13 10:38:58 +00:00
miham
2e44df7b24
(svn r8087) [Translations] Japanese translation manually updated by ickoonite
2007-01-13 07:31:35 +00:00
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)
2007-01-13 07:19:26 +00:00
miham
86d12372b3
(svn r8085) [Translations] fixed the filenames to the scheme the others use, updated projectfile, sorry
2007-01-12 22:32:58 +00:00
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
2007-01-12 22:27:27 +00:00
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.
2007-01-12 20:19:49 +00:00
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)
2007-01-12 18:32:39 +00:00
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.
2007-01-12 16:44:08 +00:00
Darkvater
a5cd65b3f9
(svn r8080) -Codechange (r8079): Move the *WHOLE* performance code into the #ifndef and some style changes.
2007-01-12 16:30:41 +00:00
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)
2007-01-12 15:43:00 +00:00
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.
2007-01-12 14:30:01 +00:00
Darkvater
d34bdd8900
(svn r8077) -Cleanup: Restructure some switch() statements' default case when they're unreachable
2007-01-12 14:28:00 +00:00
maedhros
129326425b
(svn r8075) -Feature: Add support for variable 7E - subroutines. (peter1138)
2007-01-12 11:20:34 +00:00
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.
2007-01-12 08:37:14 +00:00
miham
ef0504afb1
(svn r8073) WebTranslator2 update to 2007-01-12 08:35:48
...
brazilian_portuguese - 92 changed by fukumori (92)
2007-01-12 07:37:35 +00:00
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)
2007-01-12 00:44:49 +00:00
glx
101f544ca8
(svn r8070) -Fix r5815: missing initialisation could cause crash when loading 24bpp BMP heightmap
2007-01-11 21:49:39 +00:00
miham
a68def49db
(svn r8069) [Translations] Moved japanese from unfinished, good job translators
2007-01-11 19:35:30 +00:00
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)
2007-01-11 18:36:22 +00:00
KUDr
28e969924b
(svn r8066) - Codechange: MallocT(), CallocT(), ReallocT() now return the pointer to allocated memory instead of modifying the pointer given as parameter
2007-01-11 17:29:39 +00:00
celestar
5675956443
(svn r8065) -Feature: The station list does now remember the sort settings
2007-01-11 15:30:35 +00:00
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.
2007-01-11 14:40:12 +00:00
peter1138
be3e723f51
(svn r8062) -Codechange: change newgrf varaction2 value from signed to unsigned
2007-01-11 14:25:17 +00:00
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
2007-01-11 13:47:55 +00:00
celestar
582d8701ec
(svn r8058) -Codechange: Replaced an occurence of (uint32)-1 by UINT_MAX
2007-01-11 12:47:42 +00:00
celestar
e12cf8503d
(svn r8057) -Codechange: Declare the "new" max template as static line.
2007-01-11 12:38:04 +00:00
celestar
c56ee62ade
(svn r8056) -Codechange: Remove swap_byte, swap_byte, and siblings (some were not used anyway) and replace them by our SwapT implementation
2007-01-11 12:32:10 +00:00
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().
2007-01-11 11:05:01 +00:00
peter1138
0677847569
(svn r8054) -Codechange: Use a template function instead of a macro for evaluating NewGRF var adjusts
2007-01-11 10:58:53 +00:00
miham
97b20c3fa7
(svn r8053) [Translations] Reverted german translators work (moewe2), since it looks suspicious
2007-01-11 10:35:59 +00:00
KUDr
8553b0dad5
(svn r8052) - Codechange: RemoveFirstTrack() and RemoveFirstTrackdir() now accept pointer to TrackBits/TrackdirBits instead of reference.
2007-01-11 10:34:42 +00:00
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)
2007-01-11 06:24:37 +00:00
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
2007-01-11 02:05:13 +00:00
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).
2007-01-11 01:21:55 +00:00
Darkvater
c0a516b8e5
(svn r8044) Regression (r8038): Crash on allocating bridge memory (peter1138)
2007-01-10 21:44:59 +00:00
rubidium
e60d61e0cd
(svn r8043) -Fix (8028): forgot setting a variable.
2007-01-10 20:11:13 +00:00
orudge
5652c39bdd
(svn r8042) - Fix: OS/2 compilation with GCC (thanks to Paul Smedley and TrueBrain for their help)
2007-01-10 19:39:54 +00:00
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
2007-01-10 19:20:25 +00:00
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)
2007-01-10 19:00:08 +00:00
rubidium
a7d0cdf95f
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
2007-01-10 18:56:51 +00:00
rubidium
52ffd840cb
(svn r8034) -Fix (r8033): aircraft_cmd.c was not renamed.
2007-01-10 18:24:48 +00:00
KUDr
07c30785ab
(svn r8033) [cpp] - Prepare for merge from branches/cpp (all .c files renamed to .cpp)
2007-01-10 18:12:09 +00:00
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.
2007-01-10 16:31:40 +00:00
rubidium
cadd82434c
(svn r8029) -Fix (7759): somehow the old configure script was not removed.
2007-01-10 15:03:47 +00:00
rubidium
974bcd9683
(svn r8028) -Fix: overflow of ticks was not handled properly, possibly resulting a non-reacting gameserver/gameclient.
2007-01-10 15:00:20 +00:00
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)
2007-01-10 14:52:10 +00:00
celestar
077448ead7
(svn r8026) -Fix (r2441) When taking up cargo that is transferring, trains will now also have the virtual profit deducted.
2007-01-10 14:22:49 +00:00
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.
2007-01-09 21:43:32 +00:00
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.
2007-01-09 21:25:13 +00:00
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)
2007-01-09 19:43:46 +00:00
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.
2007-01-09 16:27:25 +00:00
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.
2007-01-09 14:48:21 +00:00
miham
541039639b
(svn r7987) [Translations] Slovenian is no longer unfinished (no bad strings)
2007-01-09 07:24:35 +00:00
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)
2007-01-09 07:22:20 +00:00
Darkvater
35ea3335ce
(svn r7984) -Fix: out-of-bounds read access on _clients array (Quark)
2007-01-08 19:18:53 +00:00
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)
2007-01-08 18:39:17 +00:00
peter1138
c284f92c83
(svn r7982) -Codechange: Enumify graphics blitter modes.
2007-01-08 18:07:57 +00:00
celestar
8da2dbdf3b
(svn r7976) -Fix: (SF 1629560) Rail vehicles can no longer enter tunnels or bridgeheads with wrong railtype
2007-01-08 10:36:45 +00:00
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)
2007-01-08 08:16:01 +00:00
Darkvater
b207d3f3eb
(svn r7969) *whistle* 20067 has not yet come to pass; it's 2007 (I think my search&replace broke)
2007-01-07 17:32:35 +00:00
Darkvater
a115bd8e92
(svn r7968) -Update copyright/etc information to 2007
2007-01-07 16:55:30 +00:00
Darkvater
786c8496ec
(svn r7966) -Fix (r7936): Eh AxisToTrack returns Track not Axis, thanks KUDr
2007-01-07 16:35:20 +00:00
Darkvater
0a44c03edd
(svn r7936) -Fix (r4987, old-rev): Only update the signals and YAPF cache on a DC_EXEC action for bridge-building
2007-01-07 00:19:57 +00:00
rubidium
acdeae8cc8
(svn r7932) -Fix (r7931): committed a few files too much :( (the ones I used to test the new masterserver)
2007-01-06 23:00:21 +00:00
rubidium
2a596e09f1
(svn r7931) -Fix (r7759): multiple (different) -O flags made compilations with the wrong optimisations.
2007-01-06 22:58:01 +00:00
Darkvater
de11447d08
(svn r7930) -Fix: [FS#520] Wrong GRF flag set for gradual loading (mart3p)
2007-01-06 22:43:11 +00:00
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)
2007-01-06 14:29:07 +00:00
peter1138
68de4efccf
(svn r7901) -Codechange: Remove some misplaced externs and use extern, not VARDEF, in the place they should be...
2007-01-06 13:26:04 +00:00