mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r3516) Fix embarrassing bug in r3514
This commit is contained in:
parent
41dda81b29
commit
b197b9422f
@ -500,8 +500,8 @@ static char *FormatString(char *buff, const char *str, const int32 *argv, uint c
|
||||
break;
|
||||
|
||||
case 0x81: // {STRINL}
|
||||
buff = GetStringWithArgs(buff, READ_LE_UINT16(str), argv);
|
||||
str += 2;
|
||||
buff = GetStringWithArgs(buff, READ_LE_UINT16(str-2), argv);
|
||||
break;
|
||||
case 0x82: // {DATE_LONG}
|
||||
buff = FormatYmdString(buff, GetInt32(&argv));
|
||||
|
@ -581,9 +581,9 @@ void OnTick_Trees(void)
|
||||
int m2;
|
||||
|
||||
switch (ct) {
|
||||
case CL_GRASS: m2 = 0;
|
||||
case CL_ROUGH: m2 = 0x10;
|
||||
default: m2 = (GetClearDensity(tile) << 6) | 0x20;
|
||||
case CL_GRASS: m2 = 0; break;
|
||||
case CL_ROUGH: m2 = 0x10; break;
|
||||
default: m2 = (GetClearDensity(tile) << 6) | 0x20; break;
|
||||
}
|
||||
|
||||
ModifyTile(tile,
|
||||
|
Loading…
Reference in New Issue
Block a user