Commit Graph

5318 Commits

Author SHA1 Message Date
yexo 9292c90360 (svn r15464) -Codechange [NoAI]: Call all info.nut functions exactly once and only during initialization. 2009-02-13 01:44:56 +00:00
yexo b9c66aa750 (svn r15463) -Change [API CHANGE]: Replace AIInfo::CanLoadFromVersion(version) with AIInfo::MinVersionToLoad() which should return a single integer, the minimum version the AI is able to load data from. 2009-02-13 01:24:30 +00:00
yexo 4c7106dad7 (svn r15462) -Change [NoAI]: Make AIController::GetTick() and AIController::GetSetting() static functions.
-Fix (r15460): ai_controller.hpp.sq was forgotten.
2009-02-13 00:18:56 +00:00
rubidium 806807e16b (svn r15461) -Fix (r15459): massive removal of strings from serbian. 2009-02-12 23:47:13 +00:00
rubidium dea3490b2f (svn r15460) -Fix [NoAI]: don't require an instance to exist in the scope for static functions and limit exposure of the internal function GetClassName. 2009-02-12 22:25:53 +00:00
translators 3314ef39d2 (svn r15459) -Update: WebTranslator2 update to 2009-02-12 18:45:56
afrikaans  - 5 fixed, 3 changed by Ludslad (8)
dutch      - 18 changed by Excel20 (18)
german     - 3 changed by planetmaker (3)
hungarian  - 1 changed by alyr (1)
ido        - 27 fixed by Cecile (12), Selene (15)
indonesian - 10 changed by rindu (10)
luxembourgish - 346 fixed by Gubius (346)
serbian    - 19 fixed by burek (19)
spanish    - 4 changed by eusebio (4)
2009-02-12 18:46:07 +00:00
frosch 565602fe90 (svn r15458) -Fix: Missing 'static'. 2009-02-12 18:08:47 +00:00
rubidium 9fb19be134 (svn r15457) -Fix: typo in stringid. 2009-02-12 15:17:10 +00:00
rubidium 0a673d870b (svn r15456) -Fix(ish): add strgen support to add 'directional formatting codes', so one can guide the bidirectional rendering a bit better. 2009-02-12 10:42:22 +00:00
rubidium 1d362442ec (svn r15455) -Fix: font autodetection didn't occur when directly loading a game via e.g. -g. 2009-02-12 10:13:30 +00:00
rubidium e8dbf62761 (svn r15454) -Fix [FS#2614]: towns did not know about build_on_slopes in some cases, or made decisions on the 'original' slope instead the slope after applying the foundation.. 2009-02-11 20:41:17 +00:00
frosch 81cf1cac8f (svn r15453) -Fix [FS#2450](r14613): Founding industries as OWNER_TOWN resulted in unwanted effects. 2009-02-11 20:09:29 +00:00
frosch 032346cf8a (svn r15452) -Codechange: Add DC_NO_MODIFY_TOWN_RATING. 2009-02-11 18:50:47 +00:00
translators 92584d0149 (svn r15451) -Update: WebTranslator2 update to 2009-02-11 18:46:59
afrikaans  - 5 fixed, 9 changed by Ludslad (14)
german     - 7 changed by planetmaker (1), eddi (6)
hungarian  - 5 fixed by alyr (5)
indonesian - 17 fixed, 2 changed by rindu (2), fanioz (1), adjayanto (16)
persian    - 11 fixed, 31 changed by ali sattari (42)
romanian   - 5 fixed, 14 changed by kkmic (19)
serbian    - 500 fixed, 14 changed by syndrome (514)
slovak     - 4 fixed by choze (4)
spanish    - 5 fixed by eusebio (5)
2009-02-11 18:49:06 +00:00
peter1138 15152cdc03 (svn r15450) -Codechange: Remove unused RailTypesByte, unused RAILTYPES_... enum values, and change INVALID_RAILTYPES to be UINT_MAX. 2009-02-11 18:37:13 +00:00
frosch 3e3a158610 (svn r15449) -Codechange: Rename DC_NO_TOWN_RATING to DC_NO_TEST_TOWN_RATING as that is what it does. 2009-02-11 18:33:27 +00:00
peter1138 3728df8323 (svn r15448) -Codechange: Don't show rail types in selection drop downs if they have no label. 2009-02-11 18:10:12 +00:00
peter1138 e73a4e490c (svn r15447) -Codechange: void functions don't tend to return true if and only if anyway 2009-02-11 07:17:39 +00:00
belugas 62be0ce7e6 (svn r15446) -Revert(r15445): Seems that "iff" stands for "if and only if". So not much of a typo.
Thanks, Yexo.  I feel less ignorant today :D
2009-02-11 02:53:15 +00:00
belugas c26426a44e (svn r15445) -Fix: little typos 2009-02-11 02:30:08 +00:00
rubidium 5239eee6ac (svn r15444) -Fix (r15425): the chat messages gone gray. That gray colour was technically right. The string contained {GRAY}, but due to a latent bug (accidentally fixed in r15425) in the string drawing routing the gray would be interpreted as use palette colour 14, which is a white. 2009-02-11 01:46:09 +00:00
rubidium dba12992e8 (svn r15442) -Codechange: don't do magic on magic numbers when you can also use a single named constant. 2009-02-11 01:28:10 +00:00
yexo 8d25202067 (svn r15441) -Cleanup: Use a return value instead of passing a pointer to where the result should be stored. 2009-02-11 00:48:15 +00:00
yexo 1eeb0f6748 (svn r15440) -Fix: Backup AIObject::GetAllowDoCommand and restore the old value so AIs can't work around it. 2009-02-10 19:22:09 +00:00
smatz 3072a5d7c2 (svn r15439) -Fix [FS#2626]: call Vehicle::LeaveStation() before reversing overlength loading train (station triggers were missed, PBS reservation could cause crash) 2009-02-10 12:49:12 +00:00
glx d6e8601a62 (svn r15438) -Fix (r15434): MSVC performance warning 2009-02-10 04:23:37 +00:00
belugas da9783aaf7 (svn r15437) -Codechange: Do not run a code section when you already know it is useless
-Codechange: Do not rely on a decision based on something that has already been evaluated
2009-02-10 00:50:04 +00:00
peter1138 ad30a3c4ca (svn r15436) -Codechange: Return index of station spec within station class as a return parameter of GetCustomStationSpecByGrf(), as the index is already known. Saves on an extra loop and an extern... 2009-02-09 22:49:28 +00:00
rubidium d846eef0b6 (svn r15434) -Codechange: bit of type safety for the DC_xxx flags. 2009-02-09 21:20:05 +00:00
peter1138 cd0b38d234 (svn r15433) -Fix (r15126): Content download progress bar was not centered properly. 2009-02-09 20:30:16 +00:00
translators 8c36a96920 (svn r15432) -Update: WebTranslator2 update to 2009-02-09 18:30:51
bulgarian  - 30 fixed by Ar4i (30)
catalan    - 3 fixed by arnaullv (3)
danish     - 33 fixed by ThomasA (33)
dutch      - 5 fixed by habell (5)
english_US - 118 fixed by WhiteRabbit (118)
finnish    - 5 fixed by jpx_ (5)
german     - 5 fixed by ralph (5)
hungarian  - 2 fixed by alyr (2)
latvian    - 7 fixed by KiitsLV (5), waste (2)
polish     - 6 fixed by coolik (6)
romanian   - 3 fixed, 2 changed by kkmic (5)
serbian    - 123 fixed, 2 deleted, 229 changed by syndrome (354)
simplified_chinese - 5 fixed by ww9980 (5)
spanish    - 1 changed by Dominus (1)
ukrainian  - 3 fixed by mad (3)
2009-02-09 18:31:10 +00:00
rubidium d71ec28edc (svn r15431) -Fix (r15425): wrongly added assertion due to unneeded & 0xFF. Now use the same method of handling the colour as it would do when drawing a string instead of a character. 2009-02-09 10:31:37 +00:00
rubidium 05792c46a3 (svn r15429) -Change: do r15428 also for the string names. 2009-02-09 03:07:03 +00:00
rubidium c0a8d09ca7 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 2009-02-09 02:57:15 +00:00
rubidium 90e2465d7d (svn r15427) -Codechange: give w->caption_color a more sensible name as it holds the owner of whatever is shown in the window 2009-02-09 02:33:10 +00:00
rubidium 8dae160d0f (svn r15425) -Codechange: some color->colour changes and type safety. 2009-02-09 02:09:47 +00:00
rubidium 861e9cefb3 (svn r15424) -Codechange: make it possible to have multiple windows with edit box open simultaniously (Zuu). 2009-02-09 01:22:29 +00:00
rubidium 9907742a0f (svn r15423) -Codechange: split widget related types to their own header and add a bit of type strictness. 2009-02-09 01:06:23 +00:00
rubidium 7b8c13fa5c (svn r15422) -Fix [FS#2623] (r15383): loading NewGRFs before copying the settings. 2009-02-08 23:06:56 +00:00
peter1138 68e641e9ed (svn r15418) -Codechange: Add action7/9 support to detect available rail type labels 2009-02-08 18:29:22 +00:00
peter1138 a68e0ee42f (svn r15417) -Codechange: Add default rail type labels and support for per-GRF translation table. 2009-02-08 18:11:06 +00:00
rubidium 986224519a (svn r15416) -Fix (r15412): revert the removal of the road side drop down box handling. 2009-02-08 17:46:08 +00:00
rubidium faeb00008a (svn r15415) -Change: close the (station) joiner window when pressing the bulldozer. 2009-02-08 16:03:17 +00:00
rubidium 57b27ffbab (svn r15414) -Codechange: s/delete FindWindowById/DeleteWindowById/ 2009-02-08 16:00:57 +00:00
rubidium 856f26e35b (svn r15413) -Fix [FS#2529/2533]: inconsistencies between station and bridge building w.r.t. tile selection and when the window should be closed. 2009-02-08 15:45:34 +00:00
peter1138 748d4d2fb9 (svn r15412) -Fix: Clearing custom engine names could cause desyncs due to be client-side only; GUI parts of save/load of custom engine names also removed as it was never implemented. 2009-02-08 12:58:14 +00:00
rubidium dcb3a9ac51 (svn r15411) -Feature(ttette): make 'set' a alias for the setting/patch console command 2009-02-08 12:42:45 +00:00
rubidium 377ce6c5bf (svn r15410) -Cleanup: get rid of most of the references to the 'patches' except where it's used for backward compatability. 2009-02-08 12:25:13 +00:00
frosch 27105127f6 (svn r15409) -Update: Currencies
Remove intermediate currency "New Turkish lira".
  Add Euro introduction date for Slovakia.
  Remove Euro introduction date for Hungary.
2009-02-08 12:02:28 +00:00
Yexo 5bcdcdd1d1 (svn r15408) -Fix (r15027): AIs could call AIController::Sleep() at times they're not allowed to sleep. 2009-02-08 11:34:51 +00:00
peter1138 5f8c2b1b4e (svn r15407) -Codechange: When loading a save game with an invalid pool index, report the problem (invalid index) rather than an impossible symptom (too many items), and report it in game instead of causing a crash. 2009-02-08 10:37:24 +00:00
rubidium e1b1fd18b5 (svn r15406) -Fix: make Valuate actually cost a few opcodes to not make it a single opcode method of doing lots of the same thing. This should resolve most of the hiccups caused by AIs. 2009-02-08 01:51:48 +00:00
michi_cc 8bd5f10a2c (svn r15404) -Cleanup [YAPF]: A tiny bit of const correctness. 2009-02-08 01:10:48 +00:00
translators 088d5bb2ed (svn r15403) -Update: WebTranslator2 update to 2009-02-07 18:48:00
arabic_egypt - 6 fixed by khaloofah (6)
brazilian_portuguese - 15 fixed by tucalipe (15)
catalan    - 3 fixed by arnaullv (3)
dutch      - 2 fixed, 21 changed by Yexo (21), Excel20 (2)
finnish    - 3 fixed by jpx_ (3)
french     - 6 fixed by glx (6)
german     - 6 fixed by hellow (6)
hungarian  - 4 fixed by alyr (4)
italian    - 17 fixed by lorenzodv (17)
korean     - 6 fixed, 22 changed by darkttd (28)
norwegian_bokmal - 27 fixed by khh (27)
romanian   - 3 fixed, 4 changed by kkmic (7)
serbian    - 176 fixed, 93 changed by syndrome (269)
simplified_chinese - 16 fixed, 1 changed by ww9980 (17)
spanish    - 6 fixed by Dominus (6)
turkish    - 17 fixed, 1 changed by Emin (18)
2009-02-07 18:48:25 +00:00
smatz 575e349828 (svn r15402) -Codechange: verify _current_company didn't change when executing a command 2009-02-07 18:09:30 +00:00
smatz 9c59b711b7 (svn r15401) -Fix [FS#2619](r15027): AI::Stop changed _current_company, but didn't restore its original value 2009-02-07 17:01:44 +00:00
frosch 4e8707b93f (svn r15400) -Fix: Typos in comments. 2009-02-07 16:23:42 +00:00
frosch 769573d1e9 (svn r15399) -Fix [FS#2617]: For articulated parts v->cargo_type == CT_INVALID is possible. 2009-02-07 16:17:03 +00:00
smatz 9702edb554 (svn r15398) -Fix (r14135): _current_company shouldn't be used in GUI code (Swallow) 2009-02-07 16:11:21 +00:00
rubidium e31e514474 (svn r15397) -Fix [FS#2618]: a town could build a statue under a bridge. 2009-02-07 16:02:29 +00:00
smatz abb17d64a1 (svn r15396) -Fix [FS#2601](r15027): since AIs can have vehicle groups now, convert the groups correctly 2009-02-07 13:53:38 +00:00
rubidium d7a053578d (svn r15395) -Fix [FS#2611] (r15377): one couldn't reset companies anymore in a 'dedicated' server. 2009-02-07 12:02:13 +00:00
glx 39dfd18880 (svn r15394) -Fix (r15389): no new line at end of line warning 2009-02-07 03:31:48 +00:00
belugas b4f9cf551f (svn r15393) -Fix: little typo 2009-02-07 03:06:38 +00:00
belugas 0abf14384c (svn r15392) -Codechange: move the spec getter to a place where it's only required, without the use of extern 2009-02-07 02:38:32 +00:00
rubidium bab7367a59 (svn r15391) -Fix (r14997): loading font sprites should not trigger a palette conversion. 2009-02-07 02:29:08 +00:00
Yexo 322515e8d5 (svn r15390) -Cleanup: Remove old hack that wasn't used anymore. 2009-02-07 01:17:15 +00:00
peter1138 967491a22d (svn r15389) -Feature: Add ability to select which base graphics set is used from the Game Options window. The change takes effect when the window is closed. This option can only be used from the intro menu, as reloading graphics during a game may cause issues. 2009-02-07 01:01:02 +00:00
rubidium ae2fda6c02 (svn r15388) -Change: unify the way Ctrl+Click is written. 2009-02-07 00:45:24 +00:00
peter1138 77760a62fd (svn r15387) -Codechange: Add a drop down list item type for char* strings. 2009-02-07 00:37:35 +00:00
peter1138 db54537369 (svn r15386) -Codechange: During start up, store driver/blitter/graphicsset selection in local variable instead of in the global _ini_* variables. This means that specifying a driver/blitter/graphicsset on the command line does not clobber the configuration value, which can now be saved like other values. 2009-02-07 00:33:35 +00:00
peter1138 cd84ffb036 (svn r15385) -Fix: Saving of char* to configuration file did not work due to incorrect parameter order and no handling of NULL. 2009-02-07 00:29:35 +00:00
rubidium eb533138bc (svn r15384) -Change: tweak some settings to make OpenTTD easier to use for first-time users (or upgraders) 2009-02-07 00:22:21 +00:00
Yexo 4301278514 (svn r15383) -Cleanup: Don't call MakeNewgameSettingsLive more often than necessary. 2009-02-06 23:58:16 +00:00
rubidium 4cc07196ac (svn r15382) -Fix [FS#2466]: multiple vehicles could be filling the timetable and only the data from one vehicle would be taken. Now only allow one to be filling at a time. 2009-02-06 21:30:18 +00:00
frosch c52680a131 (svn r15381) -Fix (r11091): When testing for parallel road two tiles away, do not move more than one tile along the road. 2009-02-06 20:51:24 +00:00
frosch 5a369e1b50 (svn r15380) -Fix (r15190)[FS#2603]: Do not use TileY() on negative TileIndexDiffs. But the test was not needed anyway, as those tiles were already tested in previous iterations. 2009-02-06 20:24:44 +00:00
translators 25a5178aaf (svn r15379) -Update: WebTranslator2 update to 2009-02-06 18:45:59
arabic_egypt - 11 fixed by khaloofah (11)
catalan    - 11 fixed by arnaullv (11)
dutch      - 10 fixed, 2 changed by Yexo (10), Excel20 (2)
finnish    - 14 fixed by jpx_ (12), UltimateSephiroth (2)
french     - 11 fixed by glx (11)
german     - 11 fixed by ralph (5), hellow (6)
hebrew     - 5 fixed by 19izhar73 (5)
hungarian  - 11 fixed, 3 changed by alyr (3), IPG (4), oklmernok (7)
korean     - 11 fixed, 2 changed by darkttd (13)
latvian    - 25 fixed by waste (25)
portuguese - 16 fixed by supra90 (10), SnowFlake (6)
romanian   - 11 fixed by kkmic (11)
serbian    - 5 fixed, 271 changed by syndrome (276)
simplified_chinese - 2 fixed by ww9980 (2)
spanish    - 11 fixed by Dominus (11)
traditional_chinese - 3 fixed, 5 changed by ww9980 (8)
ukrainian  - 14 fixed by mad (14)
2009-02-06 18:46:21 +00:00
frosch a5d515bfd6 (svn r15378) -Fix: The subcargo returned by vehicle variable 0x42 should be the most-common-subcargo of the most-common-cargo. If nothing is transported 0x..FFFF00 should be returned. 2009-02-06 18:06:05 +00:00
rubidium 841050ec83 (svn r15377) -Fix [FS#2607]: filter did resort when unneeded and didn't deselect properly in some cases (Roujin) 2009-02-06 18:00:05 +00:00
rubidium cecc3863cd (svn r15376) -Fix [FS#2608] (r15371): OSX/BSD also seems to define strcasecmp under some circumstances. 2009-02-06 15:53:48 +00:00
rubidium 9bc7e4bdb2 (svn r15375) -Fix [FS#2605]: a tram circling around in a depot did never actually 'enter' the depot. 2009-02-06 15:52:22 +00:00
rubidium 0cfc402823 (svn r15374) -Codechange: remove a magic constant. 2009-02-06 15:39:34 +00:00
rubidium ef754b8b6d (svn r15373) -Fix [FS#2606]: Kenobi denied the server's client name to the tab-completed. 2009-02-06 15:11:17 +00:00
rubidium c346f249cd (svn r15372) -Feature: filter the 'content' based on the tag/name. Based on a patch by Roujin. 2009-02-06 12:00:14 +00:00
rubidium 35c5da08c5 (svn r15371) -Codechange: add an implementation of strcasestr for when _GNU_SOURCE isn't defined. 2009-02-06 11:58:52 +00:00
rubidium ba3d7e70f2 (svn r15370) -Codechange: add a callback to tell the parent of an OSK that the string has changed instead of only marking the text box dirty. 2009-02-06 11:57:25 +00:00
rubidium 2ab6fffccc (svn r15369) -Codechange: generalise the GUIList a bit so peter can write filters for cargo type, speed and mass ;) 2009-02-06 10:38:57 +00:00
rubidium 6252c74584 (svn r15368) -Fix: some typos in comments 2009-02-06 10:31:05 +00:00
rubidium cfc80a17d8 (svn r15367) -Add: framework for filtering GUILists (Roujin) 2009-02-06 00:51:11 +00:00
Yexo cb3784d8b1 (svn r15366) -Add [NoAI]: Add AddLabels() where you can define labels for the values of the settings in info.nut 2009-02-06 00:25:37 +00:00
rubidium 546cd4f70e (svn r15363) -Fix [FS#2600]: inconsistency w.r.t. On/Off text for settings. 2009-02-05 22:05:58 +00:00
rubidium 0cf08d32c7 (svn r15362) -Change: make a string name more consistent. 2009-02-05 21:50:56 +00:00
smatz d2716d66e3 (svn r15361) -Cleanup: minor comment style fixes (planetmaker) 2009-02-05 17:59:59 +00:00
frosch 324e92f879 (svn r15360) -Fix: Flooding vehicles did not trigger an AI event. 2009-02-05 17:48:08 +00:00
frosch cb049e4e58 (svn r15359) -Add [NoAI]: AIEventVehicleCrashed::CRASH_RV_UFO, AIEventDisasterZeppelinerCrashed and AIEventDisasterZeppelinerCleared as aliens accepted NoAIs as competing life-form. 2009-02-05 17:38:47 +00:00
frosch 7f198507f7 (svn r15358) -Add [NoAI]: AIEventVehicleCrashed::GetCrashReason() 2009-02-05 17:28:37 +00:00
smatz 6dff31d34b (svn r15357) -Codechange: unify the way buttons are updated in the 'found town' window 2009-02-05 16:51:23 +00:00
smatz ef4282f8de (svn r15356) -Codechange: make PlaceProc_Town and some global variables a static function/variables of the scenedit window 2009-02-05 15:59:40 +00:00
rubidium 8fb4962407 (svn r15355) -Codechange: simplify some stuff now ->FirstShared returns non-NULL again. 2009-02-05 15:59:23 +00:00