------------------------------------------------------------------------ r17838 | rubidium | 2009-10-21 15:40:50 +0000 (Wed, 21 Oct 2009) | 2 lines -Document: the Pool struct's template parameters ------------------------------------------------------------------------ r17837 | rubidium | 2009-10-21 10:05:22 +0000 (Wed, 21 Oct 2009) | 2 lines -Fix (r17812): comment erroneously mentioned feeder share ------------------------------------------------------------------------ r17836 | rubidium | 2009-10-20 22:24:34 +0000 (Tue, 20 Oct 2009) | 2 lines -Codechange: split the CargoPacket constructor for creating 'real' new CargoPackets and saveload. For saveload we do not need to set anything except two variables (the rest is always overwritten by the load), for new 'real' cargo also pass the source_xy; dereferencing st before calling is easier than resolving st->index back to st and then dereferencing. Also don't set loaded_at_xy because that is of no importance when not loaded in a vehicle. ------------------------------------------------------------------------ r17835 | smatz | 2009-10-20 22:17:39 +0000 (Tue, 20 Oct 2009) | 1 line -Codechange: constify few variables ------------------------------------------------------------------------ r17834 | rubidium | 2009-10-20 22:06:33 +0000 (Tue, 20 Oct 2009) | 2 lines -Fix [FS#3274] (r17808): you got paid a bit too much... ofcourse the index of the source station generally doesn't equal the location of said station. ------------------------------------------------------------------------ r17833 | alberth | 2009-10-20 21:41:44 +0000 (Tue, 20 Oct 2009) | 1 line -Codechange: Depot gui should use relative widget coordinates for clicking. ------------------------------------------------------------------------ r17832 | smatz | 2009-10-20 21:27:44 +0000 (Tue, 20 Oct 2009) | 1 line -Codechange: make Alberth happier ------------------------------------------------------------------------ r17831 | smatz | 2009-10-20 21:26:56 +0000 (Tue, 20 Oct 2009) | 1 line -Codechange: move code used for adding map indicators of the smallmap to separate functions ------------------------------------------------------------------------ r17830 | frosch | 2009-10-20 21:25:25 +0000 (Tue, 20 Oct 2009) | 1 line -Fix [FS#3276]: Some windows already need their window_number when setting up smallest size (e.g. for DParams). So assign it earlier in Window::InitializeData instead of dealing with each window separately. ------------------------------------------------------------------------ r17829 | smatz | 2009-10-20 20:57:30 +0000 (Tue, 20 Oct 2009) | 1 line -Codechange: move code used for adding vehicles and town names to minimap to separate functions ------------------------------------------------------------------------ r17828 | alberth | 2009-10-20 20:06:25 +0000 (Tue, 20 Oct 2009) | 1 line -Codechange: Variable declaration code style, and a few comment typo-ish fixes. ------------------------------------------------------------------------ r17827 | frosch | 2009-10-20 20:01:56 +0000 (Tue, 20 Oct 2009) | 1 line -Codechange: Deduplicate some lines of code. ------------------------------------------------------------------------ r17826 | frosch | 2009-10-20 19:55:09 +0000 (Tue, 20 Oct 2009) | 1 line -Codechange: GetRoadVehLength() is only used in one file, make it static. ------------------------------------------------------------------------ r17825 | smatz | 2009-10-20 19:38:51 +0000 (Tue, 20 Oct 2009) | 1 line -Change: 'animate' the 'center to current position' button in SmallMapWindow when pressed ------------------------------------------------------------------------ r17824 | frosch | 2009-10-20 19:30:50 +0000 (Tue, 20 Oct 2009) | 1 line -Fix (r4594): _date_fract runs from 0 to 73 since r2041. Variable 0x09 should not. ------------------------------------------------------------------------ r17823 | alberth | 2009-10-20 18:39:45 +0000 (Tue, 20 Oct 2009) | 1 line -Codechange: Use top of the matrix widget as offset for row calculation in autoreplace window. ------------------------------------------------------------------------ r17822 | smatz | 2009-10-20 18:38:38 +0000 (Tue, 20 Oct 2009) | 1 line -Codechange: move 'extra viewport' code from smallmap_gui.cpp to viewport_gui.cpp ------------------------------------------------------------------------ r17821 | smatz | 2009-10-20 18:15:42 +0000 (Tue, 20 Oct 2009) | 1 line -Codechange: make more mathods of SmallMapWindow private ------------------------------------------------------------------------ r17820 | translators | 2009-10-20 17:45:11 +0000 (Tue, 20 Oct 2009) | 4 lines -Update from WebTranslator v3.0: traditional_chinese - 6 changes by josesun indonesian - 1 changes by prof ------------------------------------------------------------------------ r17819 | smatz | 2009-10-20 17:36:06 +0000 (Tue, 20 Oct 2009) | 1 line -Codechange: replace magic constant by symbolic constant ------------------------------------------------------------------------ r17818 | rubidium | 2009-10-20 16:36:35 +0000 (Tue, 20 Oct 2009) | 3 lines -Codechange: iterate the cargo list from the back when trying to merge packets. Chances are higher that the last packet (in the FIFO-ish queue) is mergeable with the to be added package. If a train gets loaded packets get split up and put into the different carriages, at unload they are unloaded in the same order so the last in the FIFO-ish queue is likely the packet it can merge with. This results in a 5-10% performance improvement of CargoList's Append/MoveTo without performance degradation of AgeCargo. ------------------------------------------------------------------------ r17817 | rubidium | 2009-10-20 12:31:11 +0000 (Tue, 20 Oct 2009) | 2 lines -Codechange: MakeWater actually made sea tiles, so rename it to MakeSea and unduplicate the code to make sea, rivers and canals. ------------------------------------------------------------------------ r17816 | rubidium | 2009-10-20 12:20:53 +0000 (Tue, 20 Oct 2009) | 2 lines -Codechange: move the CargoList invalidation-after-saveload to the function that handles the CargoPackets instead of spreading it around over the saveload files. Also add some code to validate whether the caches are valid; to be removed later when no problems turn up ------------------------------------------------------------------------ r17815 | rubidium | 2009-10-19 20:32:05 +0000 (Mon, 19 Oct 2009) | 2 lines -Fix [SDL]: asynchronious drawing caused extra unresponsiveness during map generation; disable the threading while generating a map ------------------------------------------------------------------------ r17814 | rubidium | 2009-10-19 15:36:35 +0000 (Mon, 19 Oct 2009) | 2 lines -Codechange: there's no need to invalidate the cache in the constructor of a CargoList; the list is empty, the CargoList is calloc-ed so all caches are 0. ------------------------------------------------------------------------ r17813 | rubidium | 2009-10-19 09:15:47 +0000 (Mon, 19 Oct 2009) | 2 lines -Codechange: unify the CargoPacket related coding style ------------------------------------------------------------------------ r17812 | rubidium | 2009-10-19 01:12:51 +0000 (Mon, 19 Oct 2009) | 2 lines -Codechange: move the feeder_share cache from CargoList to VehicleCargoList; saves 512 bytes per station and 1-2% on CargoList::MoveTo. ------------------------------------------------------------------------ r17811 | rubidium | 2009-10-18 20:56:38 +0000 (Sun, 18 Oct 2009) | 2 lines -Codechange: make HasEditBoxFocus a private function of QueryString because it's not meant to be used for determining whether the given widget actually has focus (it also checks the OSK edit box) ------------------------------------------------------------------------ r17810 | frosch | 2009-10-18 20:26:29 +0000 (Sun, 18 Oct 2009) | 3 lines -Codechange/Fix: Add assert_tcompile() and use it. OTTD's traditional assert_compile() does not work inside templates for gcc compilers, static_assert() does though. The new assert_tcompile() resolves into static_assert() if present, or into a runtime assert() else. ------------------------------------------------------------------------ r17809 | frosch | 2009-10-18 18:47:43 +0000 (Sun, 18 Oct 2009) | 1 line -Fix: MSVC compilation. ------------------------------------------------------------------------ r17808 | rubidium | 2009-10-18 17:53:34 +0000 (Sun, 18 Oct 2009) | 2 lines -Codechange: remove write 'access' from all of CargoPacket's variables ------------------------------------------------------------------------ r17807 | rubidium | 2009-10-18 17:52:44 +0000 (Sun, 18 Oct 2009) | 2 lines -Codechange: move all 'updates' just after the 'load' constructor of CargoPackets to the constructor call itself ------------------------------------------------------------------------ r17806 | rubidium | 2009-10-18 17:47:38 +0000 (Sun, 18 Oct 2009) | 2 lines -Codechange: split CargoPacket's 'afterload' to a separate function ------------------------------------------------------------------------ r17805 | translators | 2009-10-18 17:45:10 +0000 (Sun, 18 Oct 2009) | 4 lines -Update from WebTranslator v3.0: norwegian_bokmal - 1 changes by Utvik norwegian_nynorsk - 1 changes by Utvik ------------------------------------------------------------------------ r17804 | rubidium | 2009-10-18 17:26:10 +0000 (Sun, 18 Oct 2009) | 2 lines -Codechange: move the CargoPacket 'invalidation' when stations get removed to CargoPacket. ------------------------------------------------------------------------ r17803 | frosch | 2009-10-18 16:31:27 +0000 (Sun, 18 Oct 2009) | 1 line -Codechange: Remove update_(left|right) in favour of the rebuild flag of GUIList. ------------------------------------------------------------------------ r17802 | frosch | 2009-10-18 15:36:30 +0000 (Sun, 18 Oct 2009) | 1 line -Feature(ette) [FS#1862]: [NewGRF] Textstack support for CB 37. ------------------------------------------------------------------------ r17801 | rubidium | 2009-10-18 14:30:37 +0000 (Sun, 18 Oct 2009) | 2 lines -Codechange: for StationCargoLists the 'loaded_at_xy' does not matter when merging CargoPackets ------------------------------------------------------------------------ r17800 | rubidium | 2009-10-18 14:28:26 +0000 (Sun, 18 Oct 2009) | 2 lines -Codechange: first steps into making CargoList a template ------------------------------------------------------------------------ r17799 | alberth | 2009-10-18 14:10:59 +0000 (Sun, 18 Oct 2009) | 1 line -Codechange: industry view window uses pure nested widgets. ------------------------------------------------------------------------ r17798 | alberth | 2009-10-18 13:59:25 +0000 (Sun, 18 Oct 2009) | 1 line -Codechange: Introduce new constant WD_PAR_VSEP_WIDE for large amount of space between text. ------------------------------------------------------------------------ r17797 | alberth | 2009-10-18 13:56:09 +0000 (Sun, 18 Oct 2009) | 1 line -Codechange: Use parameters of new function, introduce constants for hardcoded numbers. ------------------------------------------------------------------------ r17796 | alberth | 2009-10-18 13:40:11 +0000 (Sun, 18 Oct 2009) | 1 line -Codechange: Move drawing of the industry info to its own function. ------------------------------------------------------------------------ r17795 | rubidium | 2009-10-18 13:39:00 +0000 (Sun, 18 Oct 2009) | 2 lines -Codechange: split cargolist into one for vehicles and one for stations. ------------------------------------------------------------------------ r17794 | michi_cc | 2009-10-17 22:36:43 +0000 (Sat, 17 Oct 2009) | 1 line -Feature: [OSX] Implement automatic fallback font selection for OSX. ------------------------------------------------------------------------ r17793 | michi_cc | 2009-10-17 22:36:39 +0000 (Sat, 17 Oct 2009) | 1 line -Fix: [OSX] The splash image wasn't displayed if the Quartz video driver was used. ------------------------------------------------------------------------ r17792 | michi_cc | 2009-10-17 22:36:35 +0000 (Sat, 17 Oct 2009) | 1 line -Fix [FS#3261]: [OSX] Fix (bogus) compiler warnings related to printf argument checking. ------------------------------------------------------------------------ r17791 | alberth | 2009-10-17 20:38:27 +0000 (Sat, 17 Oct 2009) | 1 line -Codechange: Highscore and endgame windows use pure nested widgets. ------------------------------------------------------------------------ r17790 | rubidium | 2009-10-17 20:34:09 +0000 (Sat, 17 Oct 2009) | 2 lines -Feature: translatable base sound/graphics set descriptions ------------------------------------------------------------------------ r17789 | translators | 2009-10-17 17:45:18 +0000 (Sat, 17 Oct 2009) | 7 lines -Update from WebTranslator v3.0: basque - 79 changes by Thadah greek - 11 changes by fumantsu norwegian_bokmal - 78 changes by Utvik norwegian_nynorsk - 1 changes by Utvik swedish - 233 changes by accatyyc ------------------------------------------------------------------------ r17788 | rubidium | 2009-10-17 15:15:00 +0000 (Sat, 17 Oct 2009) | 2 lines -Fix [FS#3268] (r16702): don't fail hard when no soundcard could be detected; just fall back on the null-driver ------------------------------------------------------------------------ r17787 | rubidium | 2009-10-17 14:39:43 +0000 (Sat, 17 Oct 2009) | 2 lines -Codechange: be a bit more verbose about while allegro failed with some actions. ------------------------------------------------------------------------ r17786 | rubidium | 2009-10-17 14:29:10 +0000 (Sat, 17 Oct 2009) | 2 lines -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows ------------------------------------------------------------------------ r17785 | alberth | 2009-10-17 14:26:40 +0000 (Sat, 17 Oct 2009) | 1 line -Codechange: autoreplace window uses pure nested widgets. ------------------------------------------------------------------------ r17784 | alberth | 2009-10-17 08:18:55 +0000 (Sat, 17 Oct 2009) | 1 line -Codechange: Replace 'i' with 'side' when side is intended in the autoreplace window. ------------------------------------------------------------------------ r17783 | alberth | 2009-10-17 08:14:39 +0000 (Sat, 17 Oct 2009) | 1 line -Codechange: Remove local pointer variable 'widget' from autoreplace window. ------------------------------------------------------------------------ r17782 | rubidium | 2009-10-17 08:12:39 +0000 (Sat, 17 Oct 2009) | 2 lines -Fix [FS#3270]: animation wasn't removed from station tiles when keeping the rail during removal ------------------------------------------------------------------------ r17781 | alberth | 2009-10-17 08:10:46 +0000 (Sat, 17 Oct 2009) | 1 line -Codechange: Remove local variable 'selected_group' from autoreplace window. ------------------------------------------------------------------------ r17780 | alberth | 2009-10-17 07:47:59 +0000 (Sat, 17 Oct 2009) | 1 line -Codechange: A bit more code style in the autoreplace window. ------------------------------------------------------------------------ r17779 | translators | 2009-10-16 17:45:12 +0000 (Fri, 16 Oct 2009) | 5 lines -Update from WebTranslator v3.0: basque - 5 changes by Thadah hungarian - 1 changes by Petert vietnamese - 31 changes by nglekhoi ------------------------------------------------------------------------ r17778 | rubidium | 2009-10-15 20:15:12 +0000 (Thu, 15 Oct 2009) | 2 lines -Fix: remove unneeded newline from 'TOC' debug lines. ------------------------------------------------------------------------ r17777 | translators | 2009-10-15 17:45:13 +0000 (Thu, 15 Oct 2009) | 6 lines -Update from WebTranslator v3.0: basque - 7 changes by Thadah danish - 8 changes by krak greek - 47 changes by fumantsu thai - 43 changes by sf_alpha ------------------------------------------------------------------------ r17776 | rubidium | 2009-10-15 17:41:06 +0000 (Thu, 15 Oct 2009) | 8 lines -Codechange: [SDL] make "update the video card"-process asynchronious. Profiling with gprof etc. hasn't shown us that DrawSurfaceToScreen takes a significant amount of CPU; only using TIC/TOC it became apparant that it was a heavy CPU-cycle user or that it was waiting for something. The benefit of making this function asynchronious ranges from 2%-25% (real time) during fast forward on dual core/hyperthreading-enabled CPUs; 8bpp improvements are, in my test cases, significantly smaller than 32bpp improvements. On single core non-hyperthreading-enabled CPUs the extra locking/scheduling costs up to 1% extra realtime in fast forward. You can use -v sdl:no_threads to disable threading and undo this loss. During normal non-fast-forwarded games the benefit/costs are negligable except when the gameloop takes more than about 90% of the time of a tick. Note that allegro's performance does not improve with this system, likely due to their way of getting data to the video card. It is not implemented for the OS X/Windows video backends, unless (ofcourse) SDL is used there. Funny is that the performance of the 32bpp(-anim) blitter is, at least in some test cases, significantly faster (more than 10%) than the 8bpp(-optimized) blitter when looking at real time in fast forward on a dual core CPU; it was slower. The idea comes from a paper/report by Idar Borlaug and Knut Imar Hagen. ------------------------------------------------------------------------ r17775 | translators | 2009-10-14 17:45:11 +0000 (Wed, 14 Oct 2009) | 5 lines -Update from WebTranslator v3.0: basque - 119 changes by Thadah danish - 2 changes by krak brazilian_portuguese - 1 changes by Tucalipe ------------------------------------------------------------------------ r17774 | rubidium | 2009-10-14 08:20:42 +0000 (Wed, 14 Oct 2009) | 2 lines -Codechange: show the version of the (dynamically) linked library instead of the one we compiled against in the crash log ------------------------------------------------------------------------