Commit Graph

5760 Commits (203ccad578032b8b299ce9d3c99e018ce259e0f5)
 

Author SHA1 Message Date
truelight 203ccad578 (svn r8310) -Fix r8309: it is wise to put #endifs in the right place ;) 18 years ago
truelight 6a145e06c3 (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
18 years ago
truelight 79dfc62261 (svn r8308) [WinCE] -Revert r5764: in case of WinCE, use the code for FileExists as it was in pre-r5764 for Win32 (tnx Darkvater) 18 years ago
truelight bd52404b8e (svn r8307) [WinCE] -Fix: for now disable sound and music. That will be done later. 18 years ago
truelight 4dae672e92 (svn r8306) [WinCE] -Fix: some functions don't exists in WinCE, so give an alternative where possible 18 years ago
truelight bb8f3a1dff (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 ;)
18 years ago
truelight 805246015f (svn r8304) [WinCE] -Add: added configure detection for WinCE.
Compiling doesn't work, neither does running, but it is a first step in developing an official WinCE port
18 years ago
bjarni 4241f1eb20 (svn r8303) -Codechange (r8293): default is moved to the front of the switch in ShowVehicleListWindowLocal() 18 years ago
maedhros 38647bb426 (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. 18 years ago
maedhros 7a7562d8e2 (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.
18 years ago
tron 501cd51c15 (svn r8299) -Fix
Remove unreachable code
18 years ago
bjarni 59e6e762b8 (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
18 years ago
bjarni 518c4cdfce (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
18 years ago
bjarni 7871ce1879 (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
18 years ago
bjarni c8c27b9740 (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()
18 years ago
miham 470619a8bb (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)
18 years ago
miham c145db6e6b (svn r8289) [Translations] -Fix: translators sent some offline translation for simplified chinese (Fishingsnow) and japanese (ickoonite) 18 years ago
bjarni 00b730ebca (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
18 years ago
peter1138 e13b00e14f (svn r8287) -Fix (r8286): forgot to check for newline format, sorry... 18 years ago
peter1138 4d0a0fed0e (svn r8286) -Add: Korean translation by Ezi 18 years ago
KUDr 8c5f64ae56 (svn r8284) -Fix (r8277): g++ compilation error: missing brackets in sizeof 18 years ago
peter1138 d3761d97eb (svn r8283) -Fix (r8128): Custom waypoint drawing used wrong bits since bitshuffling occurred. Also update with other station drawing changes (code duplication,
eh?)
18 years ago
miham f07cbde398 (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)
18 years ago
peter1138 4d6a7b7427 (svn r8280) -Codechange: Remove unnecessarily complex assignment of waypoint string ID. 18 years ago
Darkvater 97d558760c (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 18 years ago
KUDr 7b5ec98d99 (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. 18 years ago
tron b2def96248 (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.
18 years ago
tron 7af3094bc3 (svn r8275) -Fix
Factor common data tables and use a bit more sensible names
18 years ago
Darkvater 110c0162df (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. 18 years ago
KUDr 314e35beff (svn r8273) -Fix: return value from clamp was ignored 18 years ago
KUDr 6230f9b922 (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) 18 years ago
miham b36298e8a1 (svn r8267) [Translations] -Fix: (r8266) fixed the ownname and the isocode of the russian language 18 years ago
miham 2cca03409c (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)
18 years ago
Darkvater 8e06ff09a6 (svn r8254) -Merge: Release changes from the 0.5 branch back to trunk. This ensures an updated changelog, readme, et. 18 years ago
Darkvater 4de91346e9 (svn r8253) -Codechange: Be more strict about language generation and fail any languages not having the mandatory ##name, ##ownname and ##isocode pragma's. 18 years ago
Darkvater 982c451a8e (svn r8252) -Regression(r8204): WT2 commit removed ##isocode from Russian, resulting in a clean
start of openttd being in russian instead of in english.
18 years ago
Darkvater 95ccdeeac0 (svn r8240) -Fix (r8013): Put the output of -h to stdout and not to stderr (through ShowInfo) 18 years ago
Darkvater d3a58ba36b (svn r8239) -Regression (r7278): Help window was empty for UNICODE builds 18 years ago
KUDr 147ca22060 (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) 18 years ago
Darkvater 653290c76a (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). 18 years ago
peter1138 652b804a9e (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.
18 years ago
tron 3be30b8842 (svn r8212) -Fix
Remove the unnecessary attribute RoadStop::used. The same information can be derived from RoadStop::xy
18 years ago
peter1138 004f1b061f (svn r8211) -Codechange: (NewGRF) Implement callback 2D, explicit vehicle colour map
selection.
18 years ago
tron 3d1735fcfd (svn r8207) -Fix
Remove the write-only attribute RoadStop::station
18 years ago
miham 27dde23409 (svn r8206) [Translations] -Fix: Fixed r8193, converted the html notations back to UTF8 characters 18 years ago
miham 4653c34f2a (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 :-(
18 years ago
tron f3daa56208 (svn r8203) -Fix:
Use initialisers, reduce variable scope, remove spurious whitespace, fix format string to make it readable
18 years ago
miham 0eb5af76d1 (svn r8202) -Fix: r8193: russian.txt changes somehow became garbage 18 years ago
rubidium dec9698edc (svn r8198) -Codechange: two global variables are not needed when network is disabled. 18 years ago
miham 11b19bb6ab (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)
18 years ago