Make goal quest ID use 16 bits again

This commit is contained in:
dP
2020-04-10 03:44:01 +03:00
parent 7942f63772
commit 5d542f49ef
3 changed files with 3 additions and 3 deletions

View File

@@ -74,7 +74,7 @@ This is usable for any OpenTTD servers
== CHANGELOG ==
*** 1.10.0-RC1 (1 Apr 2020) ***
*** 1.10.0 (1 Apr 2020) ***
- OpenTTD update.
*** 1.10.0-RC1 (18 Mar 2020) ***

View File

@@ -244,7 +244,7 @@ CommandCost CmdSetGoalCompleted(TileIndex tile, DoCommandFlag flags, uint32 p1,
*/
CommandCost CmdGoalQuestion(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text)
{
uint16 uniqueid = (GoalType)GB(p1, 0, 16);
uint16 uniqueid = (uint16)GB(p1, 0, 16);
CompanyID company = (CompanyID)GB(p1, 16, 8);
ClientID client = (ClientID)GB(p1, 16, 16);

View File

@@ -83,4 +83,4 @@ const byte _openttd_revision_tagged = 1;
const uint32 _openttd_newgrf_version = 1 << 28 | 10 << 24 | 0 << 20 | 1 << 19 | 28004;
const char _citymania_version[] = "20200401-master-m4cccc370e9 01.04.20";
const char _citymania_version[] = "20200401-master-m7942f63772 10.04.20";