Commit Graph

5541 Commits (82efaa746991da1724b300eb2170e67d4103a5be)
 

Author SHA1 Message Date
Darkvater 0e465359c5 (svn r7362) -Fix (r7337): Free the freetype face after any possible error. For win32 do not use the
last font in the registry if no suitable font is found.
18 years ago
glx 9812cefbe9 (svn r7360) -Cleanup r7357: Update STR_NEWGRF_FILENAME and STR_NEWGRF_GRF_ID in all languages 18 years ago
peter1138 ded31be0a0 (svn r7358) -Codechange: add newgrf_gui.c to MS project files 18 years ago
peter1138 1ba264866a (svn r7357) -Codechange: new NewGRF set up window which allows modification of NewGRF settings. 18 years ago
rubidium 292aeae137 (svn r7356) -Codechange: replace 'for (i = 0, wi = w->widget; wi->type != WWT_LAST; i++, wi++)' type for loops with 'for (i = 0; i < w->window_count; i++) { wi = &w->widget[i];'-type for loops for better readability.
-Codechange: use IsWindowWidget(Disabled|Hidden) in favor of IsWidget(Disabled|Hidden).
18 years ago
rubidium c1220546c4 (svn r7355) -Codechange: replace 'for (i = 0; w->widget[i].type != WWT_TYPE; i++)'-type for loops with 'for (i = 0; i < w->widget_count; i++)'-type for loops 18 years ago
peter1138 301d392b2c (svn r7354) -Codechange: Remove grffile->flags and use grfconfig->flags exclusively. Update action 7/9 now that we know if GRFs are disabled. 18 years ago
rubidium f029259767 (svn r7353) -Codechange: constify Window* in IsWindowWidget(Lowered|Hidden|Disabled) 18 years ago
rubidium d832b9c388 (svn r7352) -Codechange: add widget_count parameter to the window.
-Codechange: check whether widget indices are valid for all the (Set|Is)WindowWidget(Disabled|Lowered|Hidden) and related functions.
18 years ago
peter1138 9c861ef9c3 (svn r7351) -Fix (r6619): Disabled platform length and numbers were not reset for the default station. 18 years ago
rubidium 9cdeeb18cb (svn r7350) -Fix: do not handle the save game/scenario filename edit box when loading a game/scenario/heightmap. 18 years ago
peter1138 a1f5d2078f (svn r7349) -Fix (r7348): Stripping data path didn't work for absolute paths. 18 years ago
peter1138 3b6d2ed064 (svn r7348) -Feature: Initial support for saving NewGRF settings with savegames. Back up your savegames... 18 years ago
peter1138 0c5d6c94d6 (svn r7347) -Translations: Use correct plural type for Russian 18 years ago
miham 965cb78c4f (svn r7346) WebTranslator2 update to 2006-12-04 05:22:02
american   - 5 fixed by WhiteRabbit (5)
brazilian_portuguese - 1 fixed by tucalipe (1)
bulgarian  - 5 fixed by groupsky (5)
catalan    - 1 fixed, 3 changed by arnaullv (4)
croatian   - 186 fixed, 111 changed by knovak (297)
czech      - 5 fixed by Hadez (5)
dutch      - 5 fixed by habell (5)
french     - 1 fixed by glx (1)
german     - 5 fixed by Neonox (5)
italian    - 5 fixed by sidew (5)
portuguese - 4 fixed by izhirahider (4)
turkish    - 5 fixed by jnmbk (5)
18 years ago
peter1138 a36232f69b (svn r7345) -Codechange: enumification of NewGRF loading stage, and move enum definition to header for future use. 18 years ago
matthijs 3adf490f1f (svn r7341) - Codechange: Also rename the POOL_H define to OLDPOOL_H (forgotten in r7331). 18 years ago
Darkvater 5e3a3692ea (svn r7338) -Fix (r7336): [win32] libfreetype is libfreetype2 in linker options (thanks Rubidium) 18 years ago
Darkvater dcd95059be (svn r7337) -Feature: [win32] Add font selection by specifying a font-name, ala Fontconfig. Pretty
messy if you ask me, but this is what you get when MS hides the font API in the deepest
 depths... thanks Rubidium for testing.
18 years ago
Darkvater 0074c82912 (svn r7336) -Codechange: [win32] Add freetype support for Windows project files. 18 years ago
peter1138 252721d029 (svn r7335) -Codechange: redraw station tiles when cargo is moved, for newstations 18 years ago
Darkvater be36fb01b1 (svn r7334) -Revert accidentally committed file in r7333 18 years ago
Darkvater 9a5a37abbe (svn r7333) -Codechange: [win32] Extend the OTTD2FS and FS2OTTD functions to also accept conversions
into a predefined buffer insted of using the static (global) buffer. This is useful if
 the converted value will be used later on; no need to copy it somewhere else to save it.
-CodeChange: [win32] Added appropiate macros WIDE_TO_MB_BUFFER, MB_TO_WIDE_BUFFER next to
 existing WIDE_TO_MB and MB_TO_WIDE that only do work when UNICODE is defined, saves
 #ifdefs all over the place
18 years ago
rubidium 32ac800be6 (svn r7332) -Fix: segmentation fault, discovered by ln-, in the SDL video driver when one goes to fullscreen and there are no suitable resolutions. 18 years ago
matthijs f3358b9813 (svn r7331) - Codechange: Rename all memory pool macro's and types to "old pool", so the new pool implementation can be committed alongside it.
- Codechange: Rename pool.[ch] to oldpool.[ch].
18 years ago
peter1138 00e9e3e9e6 (svn r7330) -Fix (r7304): Data invalidation doesn't always happen as the local
player, resulting in an empty vehicle purchase list. Specify the player 
as an argument to IsEngineBuildable()
18 years ago
KUDr 7cc06c10d9 (svn r7329) -Fix (r7157): Invalid viewport position on quick zoom 18 years ago
rubidium 40fb1c2a54 (svn r7328) -Fix: memory corruption. The 'Load Heightmap' window does not have TerraGenesis configuration buttons and it does have only 29 widgets, not at least 33. Thanks to Tefad for finding this bug. 18 years ago
KUDr e3607281a0 (svn r7327) -Fix: [YAPF] missing YAPF cache notification when building road on rail (new crossing) or removing road from crossing 18 years ago
peter1138 acac44820b (svn r7326) -Feature: Add support for gradual (un)loading of vehicles (Maedhros) 18 years ago
peter1138 71642d464b (svn r7325) -Feature: Add support for action 5 type 0x0D, coast sprites. 18 years ago
peter1138 4fefb1f03c (svn r7324) -Codechange: reset newgrf signal location data 18 years ago
peter1138 8e59299e72 (svn r7323) -Fix (r7182): When translating NewGRF strings, look at the first
character and move ahead if needed, instead of taking the first 
character and moving back.
18 years ago
Darkvater 4bcf77f3df (svn r7322) -Update win32 project files for ukrainian and bulgarian language files. Also add
unicows.lib to Release build of VS2003.
18 years ago
peter1138 7fc52a0fe4 (svn r7321) -Translations: Move bulgarian and ukrainian out of unfinished as they are, respectively, 99% and 97% complete. 18 years ago
peter1138 71ef1e6ee8 (svn r7320) -Translations: add russian to MS VC project files 18 years ago
peter1138 94b616630e (svn r7319) -Fix (r7182): (NewGRF) Add space for terminator when translating TTDPatch strings (thanks eddi) 18 years ago
rubidium 68502b1e80 (svn r7318) -Fix: change some unfinished strings: STRING->{CARGO,POWER,WEIGHT,WEIGHT_S} and remove strings that are no longer in english.txt. 18 years ago
KUDr 1b713e9182 (svn r7317) -Fix: (r7299) warning: unused variable num_engines (peter1138) 18 years ago
Darkvater 672d45d8f6 (svn r7316) -Codechange: Make train-build-gui and aircraft-build-gui (unified) look more alike. 18 years ago
Darkvater efd1e877f0 (svn r7315) -Fix: Have the first engine in the list be selected once again when the window is opened
and remove a useless loop that tested if selected engine is still in list (moved to list
 generation).
18 years ago
Darkvater 8eb6ed2825 (svn r7314) -Cleanup: const, whitespace, coding style and variable usage. 18 years ago
Darkvater fc1a90b663 (svn r7313) -Codechange: Calling invalidate data on a window will surely warrant a redraw, so call
that after the WE_INVALIDATE_DATA event and remove (some of) the superflouous calls.
18 years ago
Darkvater 3762f8d9d2 (svn r7312) -Fix: When loading a game from a dedicated server the local player global variable was
wrongly set to 0. In theory this allowed a dedicated server to also play. I see no
 history for this bug, but it has been there since the introduction of the dedicated
 server probably. Thanks peter1138 for bringing it to my attention and thanks myself
 for rewriting the code so this bug could surface ;p
18 years ago
peter1138 7b80718803 (svn r7310) -Codechange: Change scrolling dropdown box to use 1 scroll unit = 1 line
of text, instead of 1 row of pixels. This fixes behaviour of scrolling 
with the scrollbar buttons and the mouse wheel.
18 years ago
KUDr 9d2719e3d6 (svn r7309) -Codechange: sort train engines/wagons by number first and then by custom rule 18 years ago
KUDr 5ab10031bc (svn r7308) -Codechange: call GenerateBuildList() only when needed instead of on each redraw (peter1138) 18 years ago
KUDr 4f8f438ea4 (svn r7306) -Codechange: constness (Darkvater) 18 years ago
peter1138 b6854d7e21 (svn r7305) -Codestyle: Indentation fixes 18 years ago
peter1138 8a91f18058 (svn r7304) -Codechange: Reinstate caching of sorted purchase list. Dropping from 9m to 1.5m cycles for a redraw of a full list is not frivolous. 18 years ago