From 02f666c2d88a54a846719df60cb3ffddb05d9b87 Mon Sep 17 00:00:00 2001 From: Lesh Date: Wed, 11 Oct 2006 17:48:06 +0000 Subject: [PATCH] -small fix that allows game to accept both capital and small letters as a y-coordinate of a sector in MovementCosts.xml git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@599 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Strategic/Strategic Movement Costs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Strategic/Strategic Movement Costs.cpp b/Strategic/Strategic Movement Costs.cpp index 87b78f36..3d65203e 100644 --- a/Strategic/Strategic Movement Costs.cpp +++ b/Strategic/Strategic Movement Costs.cpp @@ -72,7 +72,7 @@ smctableStartElementHandle(void *userData, const char *name, const char **atts) { if ( isalpha(atts[uiAttrIndex+1][0]) ) { - pData->uiRowNumber = (UINT32)(atts[uiAttrIndex+1][0] - 0x40); + pData->uiRowNumber = (UINT32)(atts[uiAttrIndex+1][0] & 0xDF - 0x40); } else {