Mercurial > hg > openttd
changeset 2957:aa4b083a6e0e draft
(svn r3516) Fix embarrassing bug in r3514
author | tron <tron@openttd.org> |
---|---|
date | Wed, 01 Feb 2006 19:53:17 +0000 |
parents | 375e36f6777e |
children | 04c7c3f6f78c |
files | strings.c tree_cmd.c |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/strings.c +++ b/strings.c @@ -500,8 +500,8 @@ 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));
--- a/tree_cmd.c +++ b/tree_cmd.c @@ -581,9 +581,9 @@ 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,