mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-24 15:09:10 +00:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
fa474b02f3 | ||
|
515849e764 | ||
|
ed4a9edba5 | ||
|
b83f6733ca | ||
|
b0e8d229ee |
9
Makefile
9
Makefile
@@ -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
|
||||||
|
@@ -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)
|
||||||
|
@@ -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
|
||||||
|
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -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"
|
||||||
|
@@ -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"
|
||||||
|
@@ -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.
|
||||||
|
@@ -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}"
|
||||||
|
@@ -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"
|
||||||
|
@@ -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
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
@@ -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);
|
||||||
|
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user