Commit Graph

5171 Commits

Author SHA1 Message Date
Darkvater
c4d841dcdb (svn r7200) -Codechange: remove unneeded redraw (console.c), coding style, use FindWindowById
instead of _windows loop (viewport.c), remove dump-code (mixer.c), MSVC6 borkdness
 in stdafx.h, constness (viewport.c), variable localization (win32.c), comments (window.c)
2006-11-18 00:14:43 +00:00
Darkvater
2754eeb989 (svn r7199) -Codechange: [utf8] Make strtolower and str_strip_colours UTF8 aware. 2006-11-17 23:29:22 +00:00
belugas
c26dc76a7d (svn r7198) -Codechange: Implement a circular tile search function.
Just provide the number of tiles per side, a pointer to a test function, the tile to start searching and voila.
Fixes [FS#364] by removing a lengthy and suboptimal random search pattern.
Thanks Rubidium.
2006-11-17 23:01:58 +00:00
rubidium
bd129cf6bf (svn r7196) -Feature: use fontconfig so one can set the font family name in openttd.cfg instead of the full path to the font. 2006-11-17 22:15:55 +00:00
KUDr
f2cda44d2e (svn r7195) -Feature: [FS#297, optional elrails] New patches/vehicles option 'disable electrified railways'.
(original patch by maedhros, ideas: peter1138, Darkvater, Rubidium, Patrick, Eddi|zuHause, ..)
2006-11-17 19:31:44 +00:00
rubidium
532271ba65 (svn r7194) -Fix (FS#237): the electric rail type was not set correctly for NewGRFs where the engine traction type was set before the track type of the trains. 2006-11-17 18:06:40 +00:00
peter1138
6766496ad1 (svn r7191) -Feature: Add NewGRF support for 32 bit dates, allowing vehicles and bridges to be available before 1920. 2006-11-17 11:03:38 +00:00
KUDr
d6b98584ab (svn r7190) -Fix: If the non-player-based _patches setting was changed on the server during MP game, the callback function was:
1. Called only on the server but not on its clients.
 2. Was called before the setting change occurred (usually with no effect)
 3. Received old 'p1' argument value intead of new one
It could cause some MP desyncs in the future.
2006-11-17 10:42:20 +00:00
Darkvater
590e90cd9e (svn r7187) -CodeChange: [win32] Limit success of ToUnicode/ToAscii to only one translated character as we only support one and remove TranslateMessage() call since we do not use it anyways (glx) 2006-11-17 10:06:11 +00:00
peter1138
8a49fa12ff (svn r7185) -Codechange: Make strgen validate strings for UTF-8 well-formed-ness-ness 2006-11-17 07:46:02 +00:00
peter1138
4db17dcf9b (svn r7184) -Codechange: Convert Catalan name generator to UTF-8 2006-11-17 07:35:12 +00:00
peter1138
deb7ff245a (svn r7183) -Feature (cont): Convert all language from ISO8859-15 to UTF-8 2006-11-16 22:19:12 +00:00
peter1138
1a4f1c8177 (svn r7182) -Feature: Merge utf8 branch. This brings us support for Unicode/UTF-8 and the option for fonts rendered by FreeType. Language changes to come. 2006-11-16 22:05:33 +00:00
Darkvater
40d647ddde (svn r7179) -Codechange (r7173): Actually "prefer" team chat through the patch setting instead of
always sending to teammate if the patch is on even if you do not have any allies. So
 with setting off you always send to 'all players', with setting on you send to teammates
 if you have any, otherwise to all players.
2006-11-16 20:57:23 +00:00
KUDr
7f45482bbe (svn r7178) -Fix: forgotten pointer dereferences (Bjarni, Bjarni, Bjarni, ...) 2006-11-16 20:52:39 +00:00
glx
a1a54976f5 (svn r7176) -Fix: remove button was not always disabled when it should have been (rail/road build toolbar) 2006-11-16 18:41:57 +00:00
rubidium
77bd3351e0 (svn r7175) -Fix: remove English (i.e. untranslated) strings from the Ukrainian language file. 2006-11-16 18:33:55 +00:00
KUDr
0e290fd388 (svn r7174) -CodeChange: CheckStationSpreadOut() now uses MergePoint() for bounding rectangle calculation. 2006-11-16 17:59:02 +00:00
Darkvater
ea0018fced (svn r7173) -Codechange (r6824): Allow the user to change the chat-destination when chatting with <ENTER> or 'T' instead of the game choosing one for you automatically. 2006-11-16 17:44:04 +00:00
Darkvater
edcbb10565 (svn r7172) -Fix [r6931]: The console showed '?' characters instead of colours. Now strip all
colours for the console. It's a bit magicky (magic numbers) but UTF8 fixes that soon.
2006-11-16 17:41:24 +00:00
miham
81b84c9091 (svn r7171) WebTranslator2 update to 2006-11-16 18:14:50
bulgarian  - 2 fixed, 3 deleted, 2 changed by kokobongo (7)
dutch      - 2 fixed by habell (2)
italian    - 2 fixed by sidew (2)
slovak     - 1 fixed by lengyel (1)
2006-11-16 17:15:26 +00:00
Darkvater
23d49e8231 (svn r7170) -Fix: [sdl] Non-working console toggle for some keyboard layouts. Do not OR the backquote
character but set it. Happened on Linux with Hungarian keyboard for example.
2006-11-16 16:50:54 +00:00
KUDr
07be991e62 (svn r7169) -Fix: [FS#388] Station sign (and base station coordinates) didn't move along with station when station moved by walking. (HMage) 2006-11-16 16:18:00 +00:00
KUDr
591a34296d (svn r7167) -Fix: [FS#367] Crash: engine.h:194: RailVehInfo: Assertion (reported by skidd13) 2006-11-16 13:59:26 +00:00
KUDr
2cc0c4b344 (svn r7166) -Fix: [FS#402] MiniMap was misplacing vehicles sometimes (HMage) 2006-11-16 12:31:38 +00:00
KUDr
a9312f348c (svn r7164) -Fix: [YAPF] assert when look-ahead polynomial result (red-signal penalty) is negative. Such penalty is now added as positive penalty for the appropriate green signal. (DannyA) 2006-11-16 10:51:42 +00:00
Darkvater
5a9e70b720 (svn r7163) -Codechange: Disable compilation of additional yapf code. 2006-11-16 00:09:39 +00:00
KUDr
336e0a1775 (svn r7162) -CodeChange: disabled compilation of unused code (Darkvater) 2006-11-15 23:47:52 +00:00
Darkvater
811455f74f (svn r7161) -Codechange: Update currency exchange rates... yes I'm bored ;p 2006-11-15 21:57:47 +00:00
Darkvater
e89a255238 (svn r7160) -Feature [SF 1243657, 1171147]: Slovak/Brazil currency patch (gpsoft, klanticus) 2006-11-15 21:51:16 +00:00
Darkvater
a353e354fd (svn r7157) -Fix [FS#221, SF1168820]: Some mouse events possibly lost under high CPU load, handle
mouse input right away instead of waiting for GameLoop. (KUDr)
2006-11-15 21:01:19 +00:00
Darkvater
b713974cd8 (svn r7156) -Codechange: Remove obsolete variable, localize global variable, use GB and change logic
of the win32: TAB speeds up, but ALT+TAB doesn't code.
2006-11-15 19:49:16 +00:00
miham
d33605ff21 (svn r7155) WebTranslator2 update to 2006-11-15 20:44:45
ukrainian  - 6 fixed, 2 changed by znikoz (8)
2006-11-15 19:45:16 +00:00
miham
2defe34634 (svn r7154) [Translations] Added new language: serbian 2006-11-15 19:36:47 +00:00
Darkvater
3a03b70319 (svn r7153) -Fix [FS#279]: Some keyboard events possibly lost under high CPU load, handle
keyboard input in place instead of global variables magic. (KUDr)
2006-11-15 19:35:52 +00:00
rubidium
4a986e43d4 (svn r7152) -Feature (FS#396): allow towns to be built on top of trees in the scenario editor. 2006-11-15 18:57:00 +00:00
miham
118f5b796f (svn r7149) WebTranslator2 update to 2006-11-14 18:26:05
estonian   - 1 fixed by vermon (1)
portuguese - 22 fixed by izhirahider (22)
turkish    - 2 fixed, 8 changed by jnmbk (10)
2006-11-14 17:26:41 +00:00
KUDr
ddda3c8b2f (svn r7147) -CodeChange: Don't use references if they can refer to NULL (Tron) 2006-11-14 13:42:50 +00:00
KUDr
ecccf79c07 (svn r7146) -CodeChange: ST_CONST macro removed as it is no longer needed (Tron) 2006-11-14 12:02:36 +00:00
tron
55d6c98f89 (svn r7145) Remove extra semicolons 2006-11-14 11:01:59 +00:00
glx
2b034d9b5b (svn r7144) -Cleanup r7102: remove STR_CONFIG_PATCHES_PROGRESS_UPDATE_INTERVAL in lang files 2006-11-14 01:08:20 +00:00
glx
c8685b8c38 (svn r7143) -CodeChange: remove redondancy in saveload dialogs 2006-11-14 00:27:28 +00:00
glx
30bc338f90 (svn r7142) -Fix: disable clone button in vehicle view for not owned vehicles (was already done for trains) 2006-11-14 00:02:02 +00:00
bjarni
ed46b7d380 (svn r7138) -Fix: [vehicle list windows] fixed a rare crash where having some (not all) vehicle list windows open for a player, that goes bankrupt would crash the game
-Codechange: closing all windows for a player will now loop all windows and close those, which got the player as caption instead of having a list of windows to close
2006-11-13 20:33:51 +00:00
Darkvater
21dd00b299 (svn r7137) -Codechange: [win32] Use windows function in main loop to check if we have pressed ALT
(for ALT+TAB) instead of magic global _pressed_key from input-loop. (KUDr)
2006-11-13 19:35:31 +00:00
KUDr
9d5befb22a (svn r7134) - Fix (r7133) Still can't build oil refinery in the desert climate (this time i tested it) 2006-11-12 01:28:45 +00:00
KUDr
2ac1ba423d (svn r7133) - Fix: Can't build oil refinery in other climates than temperate. 2006-11-12 01:14:44 +00:00
Darkvater
d550c47c9a (svn r7131) -Fix (r7126) which fixes (r2817) the activating of a function call that was
1. never executed before that and even if it would, it
 2. could never be executed because if it did OpenTTD would crash
2006-11-11 23:08:07 +00:00
Darkvater
47e7ad7771 (svn r7130) -Codechange: Handle the positioning of windows through the desc->left/top settings with
some special values (WDP_) instead of checking window-class. This also fixes FS#172
 now that we can position windows arbitrarily and are not restricted to window-classes.
2006-11-11 10:12:00 +00:00
Darkvater
21db9ebb8e (svn r7129) -Codechange: Get rid of a global variable that only sets a window's number. 2006-11-11 09:47:44 +00:00