1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-24 15:09:10 +00:00

Compare commits

...

5 Commits

Author SHA1 Message Date
rubidium
fa474b02f3 (svn r10469) -Release 0.5.3-RC2. 2007-07-07 19:04:46 +00:00
rubidium
515849e764 (svn r10468) [0.5] -Prepare 0.5 branch for release of 0.5.3-RC2. 2007-07-07 18:26:56 +00:00
rubidium
ed4a9edba5 (svn r10467) [0.5] -Backport from trunk (r10406, r10465):
- Fix: Visual glitches when a window is resized in the WE_CREATE callback (r10465)
- Fix: Only industries in the temperate climate should be affected by the "do not increase production" flag [FS#968] (r10406)
2007-07-07 18:01:26 +00:00
glx
b83f6733ca (svn r10400) [0.5] -Backport from trunk (r10399):
- Fix: [Windows] _wnd.has_focus was not properly set after using ALT-TAB [FS#962] (r10399)
2007-06-30 15:13:55 +00:00
glx
b0e8d229ee (svn r10383) [0.5] -Fix (r10373, FS#958): v->z_pos was wrong for trains on bridge 2007-06-29 00:26:10 +00:00
15 changed files with 51 additions and 32 deletions

View File

@@ -268,14 +268,7 @@ ENDIAN_CHECK=endian_check$(EXE)
STRGEN=strgen/strgen$(EXE) STRGEN=strgen/strgen$(EXE)
OSXAPP="OpenTTD.app" OSXAPP="OpenTTD.app"
ifdef RELEASE REV := 0.5.3-RC2
REV:=$(RELEASE)
else
ifeq ($(shell if test -d .svn; then echo 1; fi), 1)
REV_MODIFIED := $(shell svnversion . | sed -n 's/.*\(M\).*/\1/p' )
REV := $(shell LC_ALL=C svn info | awk '/^URL:.*branch/ { BRANCH="-"a[split($$2, a, "/")] } /^Last Changed Rev:/ { REV="r"$$4"$(REV_MODIFIED)" } END { print REV BRANCH }')
endif
endif
# define flag to use for -lrt (some OSes overwrites this later for compatibility) # define flag to use for -lrt (some OSes overwrites this later for compatibility)
ifndef LRT ifndef LRT

View File

@@ -1,3 +1,9 @@
0.5.3-RC2 (2007-07-07)
------------------------------------------------------------------------
- Fix: Visual glitches when a window is resized in the WE_CREATE callback (r10465)
- Fix: [Windows] _wnd.has_focus was not properly set after using ALT-TAB [FS#962] (r10399)
0.5.3-RC1 (2007-06-28) 0.5.3-RC1 (2007-06-28)
------------------------------------------------------------------------ ------------------------------------------------------------------------
- Feature: Make the client list window (for network games) stickyable (r10293) - Feature: Make the client list window (for network games) stickyable (r10293)

View File

@@ -1,6 +1,6 @@
.\" Hey, EMACS: -*- nroff -*- .\" Hey, EMACS: -*- nroff -*-
.\" Please adjust this date whenever revising the manpage. .\" Please adjust this date whenever revising the manpage.
.Dd Jun 28, 2007 .Dd Jul 07, 2007
.Dt OPENTTD 6 .Dt OPENTTD 6
.Sh NAME .Sh NAME
.Nm openttd .Nm openttd

View File

@@ -1618,7 +1618,7 @@ static void ExtChangeIndustryProduction(Industry *i)
if (CHANCE16I(20, 1024, r)) new -= max(((RandomRange(50) + 10) * old) >> 8, 1U); if (CHANCE16I(20, 1024, r)) new -= max(((RandomRange(50) + 10) * old) >> 8, 1U);
/* Chance of increasing becomes better when more is transported */ /* Chance of increasing becomes better when more is transported */
if (CHANCE16I(20 + (i->pct_transported[j] * 20 >> 8), 1024, r >> 16) && if (CHANCE16I(20 + (i->pct_transported[j] * 20 >> 8), 1024, r >> 16) &&
i->type != IT_OIL_WELL) { (i->type != IT_OIL_WELL || _opt.landscape != LT_NORMAL)) {
new += max(((RandomRange(50) + 10) * old) >> 8, 1U); new += max(((RandomRange(50) + 10) * old) >> 8, 1U);
} }

View File

@@ -14,6 +14,7 @@ Bugs for 0.5.3
------------------------------------------------------------------------ ------------------------------------------------------------------------
URL: http://bugs.openttd.org URL: http://bugs.openttd.org
-944 Incorrect el-rail catenary pole/wire offsets
-917 Load scenario with no towns failed without proper warning -917 Load scenario with no towns failed without proper warning
-873 Assertion window fails to open on OSX -873 Assertion window fails to open on OSX
-820 Pillar drawing order glich, with newbridges -820 Pillar drawing order glich, with newbridges

View File

@@ -7,7 +7,7 @@
extern const char _openttd_revision[]; extern const char _openttd_revision[];
#elif defined(WITH_REV_HACK) #elif defined(WITH_REV_HACK)
#define WITH_REV #define WITH_REV
const char _openttd_revision[] = WITH_REV_HACK; const char _openttd_revision[] = "0.5.3-RC2";
#else #else
const char _openttd_revision[] = NOREV_STRING; const char _openttd_revision[] = NOREV_STRING;
#endif #endif

View File

@@ -28,7 +28,7 @@
FavorSizeOrSpeed="2" FavorSizeOrSpeed="2"
OmitFramePointers="TRUE" OmitFramePointers="TRUE"
OptimizeForProcessor="1" OptimizeForProcessor="1"
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;WIN32_EXCEPTION_TRACKER;WIN32_ENABLE_DIRECTMUSIC_SUPPORT;WITH_ZLIB;WITH_PNG;WITH_FREETYPE;ENABLE_NETWORK" PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;WIN32_EXCEPTION_TRACKER;WIN32_ENABLE_DIRECTMUSIC_SUPPORT;WITH_ZLIB;WITH_PNG;WITH_FREETYPE;ENABLE_NETWORK;WITH_REV_HACK"
StringPooling="TRUE" StringPooling="TRUE"
ExceptionHandling="TRUE" ExceptionHandling="TRUE"
RuntimeLibrary="0" RuntimeLibrary="0"
@@ -101,7 +101,7 @@
<Tool <Tool
Name="VCCLCompilerTool" Name="VCCLCompilerTool"
Optimization="0" Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;WIN32_ENABLE_DIRECTMUSIC_SUPPORT;WITH_ZLIB;WITH_PNG;WITH_FREETYPE;ENABLE_NETWORK" PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;WIN32_ENABLE_DIRECTMUSIC_SUPPORT;WITH_ZLIB;WITH_PNG;WITH_FREETYPE;ENABLE_NETWORK;WITH_REV_HACK"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
UsePrecompiledHeader="2" UsePrecompiledHeader="2"

View File

@@ -58,7 +58,7 @@
EnableIntrinsicFunctions="true" EnableIntrinsicFunctions="true"
FavorSizeOrSpeed="2" FavorSizeOrSpeed="2"
OmitFramePointers="true" OmitFramePointers="true"
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;WIN32_EXCEPTION_TRACKER;WIN32_ENABLE_DIRECTMUSIC_SUPPORT;WITH_ZLIB;WITH_PNG;WITH_FREETYPE;ENABLE_NETWORK" PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;WIN32_EXCEPTION_TRACKER;WIN32_ENABLE_DIRECTMUSIC_SUPPORT;WITH_ZLIB;WITH_PNG;WITH_FREETYPE;ENABLE_NETWORK;WITH_REV_HACK"
StringPooling="true" StringPooling="true"
ExceptionHandling="1" ExceptionHandling="1"
RuntimeLibrary="0" RuntimeLibrary="0"
@@ -170,7 +170,7 @@
EnableIntrinsicFunctions="true" EnableIntrinsicFunctions="true"
FavorSizeOrSpeed="2" FavorSizeOrSpeed="2"
OmitFramePointers="true" OmitFramePointers="true"
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;WIN32_EXCEPTION_TRACKER;WIN32_ENABLE_DIRECTMUSIC_SUPPORT;WITH_ZLIB;WITH_PNG;WITH_FREETYPE;ENABLE_NETWORK" PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;WIN32_EXCEPTION_TRACKER;WIN32_ENABLE_DIRECTMUSIC_SUPPORT;WITH_ZLIB;WITH_PNG;WITH_FREETYPE;ENABLE_NETWORK;WITH_REV_HACK"
StringPooling="true" StringPooling="true"
ExceptionHandling="1" ExceptionHandling="1"
RuntimeLibrary="0" RuntimeLibrary="0"
@@ -276,7 +276,7 @@
<Tool <Tool
Name="VCCLCompilerTool" Name="VCCLCompilerTool"
Optimization="0" Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;WIN32_ENABLE_DIRECTMUSIC_SUPPORT;WITH_ZLIB;WITH_PNG;WITH_FREETYPE;ENABLE_NETWORK" PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;WIN32_ENABLE_DIRECTMUSIC_SUPPORT;WITH_ZLIB;WITH_PNG;WITH_FREETYPE;ENABLE_NETWORK;WITH_REV_HACK"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
UsePrecompiledHeader="0" UsePrecompiledHeader="0"
@@ -375,7 +375,7 @@
<Tool <Tool
Name="VCCLCompilerTool" Name="VCCLCompilerTool"
Optimization="0" Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;WIN32_ENABLE_DIRECTMUSIC_SUPPORT;WITH_ZLIB;WITH_PNG;WITH_FREETYPE;ENABLE_NETWORK" PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;WIN32_ENABLE_DIRECTMUSIC_SUPPORT;WITH_ZLIB;WITH_PNG;WITH_FREETYPE;ENABLE_NETWORK;WITH_REV_HACK"
BasicRuntimeChecks="3" BasicRuntimeChecks="3"
RuntimeLibrary="1" RuntimeLibrary="1"
UsePrecompiledHeader="0" UsePrecompiledHeader="0"

View File

@@ -1,3 +1,9 @@
openttd (0.5.3~rc2-1) unstable; urgency=low
* New upstream release.
-- Matthijs Kooijman <m.kooijman@student.utwente.nl> Sat, 7 Jul 2007 20:05:00 +0100
openttd (0.5.3~rc1-1) unstable; urgency=low openttd (0.5.3~rc1-1) unstable; urgency=low
* New upstream release. * New upstream release.

View File

@@ -1,6 +1,6 @@
!define APPNAME "OpenTTD" ; Define application name !define APPNAME "OpenTTD" ; Define application name
!define APPVERSION "0.5.3" ; Define application version !define APPVERSION "0.5.3" ; Define application version
!define INSTALLERVERSION 35 ; NEED TO UPDATE THIS FOR EVERY RELEASE!!! !define INSTALLERVERSION 36 ; NEED TO UPDATE THIS FOR EVERY RELEASE!!!
!define APPURLLINK "http://www.openttd.org" !define APPURLLINK "http://www.openttd.org"
!define APPNAMEANDVERSION "${APPNAME} ${APPVERSION}" !define APPNAMEANDVERSION "${APPNAME} ${APPVERSION}"

View File

@@ -65,8 +65,8 @@ END
// //
VS_VERSION_INFO VERSIONINFO VS_VERSION_INFO VERSIONINFO
FILEVERSION 0,5,2,0 FILEVERSION 0,5,3,0
PRODUCTVERSION 0,5,2,0 PRODUCTVERSION 0,5,3,0
FILEFLAGSMASK 0x3fL FILEFLAGSMASK 0x3fL
#ifdef _DEBUG #ifdef _DEBUG
FILEFLAGS 0x1L FILEFLAGS 0x1L
@@ -84,7 +84,7 @@ BEGIN
VALUE "Comments", "This program is licensed under the GNU General Public License.\0" VALUE "Comments", "This program is licensed under the GNU General Public License.\0"
VALUE "CompanyName", "OpenTTD Development Team\0" VALUE "CompanyName", "OpenTTD Development Team\0"
VALUE "FileDescription", "OpenTTD\0" VALUE "FileDescription", "OpenTTD\0"
VALUE "FileVersion", "0.5.2\0" VALUE "FileVersion", "0.5.3-RC2\0"
VALUE "InternalName", "openttd\0" VALUE "InternalName", "openttd\0"
VALUE "LegalCopyright", "Copyright <20> OpenTTD Developers 2002-2007. All Rights Reserved.\0" VALUE "LegalCopyright", "Copyright <20> OpenTTD Developers 2002-2007. All Rights Reserved.\0"
VALUE "LegalTrademarks", "\0" VALUE "LegalTrademarks", "\0"

View File

@@ -1,6 +1,6 @@
OpenTTD README OpenTTD README
Last updated: 2007-06-28 Last updated: 2007-07-07
Release version: 0.5.3-RC1 Release version: 0.5.3-RC2
------------------------------------------------------------------------ ------------------------------------------------------------------------

View File

@@ -2749,7 +2749,11 @@ static void TrainEnterStation(Vehicle *v, StationID station)
static byte AfterSetTrainPos(Vehicle *v, bool new_tile) static byte AfterSetTrainPos(Vehicle *v, bool new_tile)
{ {
byte old_z = v->z_pos; byte old_z = v->z_pos;
/* need this hint so it returns the right z coordinate on bridges. */
_get_z_hint = old_z;
v->z_pos = GetSlopeZ(v->x_pos, v->y_pos); v->z_pos = GetSlopeZ(v->x_pos, v->y_pos);
_get_z_hint = 0;
if (new_tile) { if (new_tile) {
CLRBIT(v->u.rail.flags, VRF_GOINGUP); CLRBIT(v->u.rail.flags, VRF_GOINGUP);

View File

@@ -24,7 +24,6 @@ static struct {
int height; int height;
int width_org; int width_org;
int height_org; int height_org;
bool minimized;
bool fullscreen; bool fullscreen;
bool double_size; bool double_size;
bool has_focus; bool has_focus;
@@ -512,8 +511,7 @@ static LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
break; break;
case WM_SIZE: case WM_SIZE:
_wnd.minimized = (wParam == SIZE_MINIMIZED); if (wParam != SIZE_MINIMIZED) {
if (!_wnd.minimized) {
/* Set maximized flag when we maximize (obviously), but also when we /* Set maximized flag when we maximize (obviously), but also when we
* switched to fullscreen from a maximized state */ * switched to fullscreen from a maximized state */
_window_maximize = (wParam == SIZE_MAXIMIZED || (_window_maximize && _fullscreen)); _window_maximize = (wParam == SIZE_MAXIMIZED || (_window_maximize && _fullscreen));
@@ -611,23 +609,34 @@ static LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
return 0; return 0;
} }
case WM_ACTIVATEAPP: case WM_SETFOCUS:
_wnd.has_focus = (wParam != 0); _wnd.has_focus = true;
break;
case WM_KILLFOCUS:
_wnd.has_focus = false;
break;
#if !defined(WINCE) #if !defined(WINCE)
case WM_ACTIVATE: {
bool active = (LOWORD(wParam) != WA_INACTIVE);
bool minimized = (HIWORD(wParam) != 0);
if (_wnd.fullscreen) { if (_wnd.fullscreen) {
if (_wnd.has_focus && _wnd.minimized) { if (active && minimized) {
/* Restore the game window */ /* Restore the game window */
ShowWindow(hwnd, SW_RESTORE); ShowWindow(hwnd, SW_RESTORE);
MakeWindow(true); MakeWindow(true);
} else if (!_wnd.has_focus && !_wnd.minimized) { } else if (!active && !minimized) {
/* Minimise the window and restore desktop */ /* Minimise the window and restore desktop */
ShowWindow(hwnd, SW_MINIMIZE); ShowWindow(hwnd, SW_MINIMIZE);
ChangeDisplaySettings(NULL, 0); ChangeDisplaySettings(NULL, 0);
} }
} }
#endif
break; break;
} }
}
#endif
return DefWindowProc(hwnd, msg, wParam, lParam); return DefWindowProc(hwnd, msg, wParam, lParam);
} }

View File

@@ -610,8 +610,8 @@ static Window *LocalAllocateWindow(
_last_z_window++; _last_z_window++;
} }
SetWindowDirty(w);
CallWindowEventNP(w, WE_CREATE); CallWindowEventNP(w, WE_CREATE);
SetWindowDirty(w);
return w; return w;
} }