Browse Source

Clean up SetAutomapView

pull/109/head
Anders Jenbo 7 years ago
parent
commit
438eec5017
  1. 10
      Source/automap.cpp

10
Source/automap.cpp

@ -589,7 +589,7 @@ void SetAutomapView(int x, int y)
} else if (GetAutomapType(xx - 1, yy, FALSE) & 0x4000) {
automapview[xx - 1][yy] = 1;
}
return;
break;
case 3:
if (solid) {
if (GetAutomapType(xx + 1, yy, FALSE) == 0x4007)
@ -597,7 +597,7 @@ void SetAutomapView(int x, int y)
} else if (GetAutomapType(xx, yy - 1, FALSE) & 0x4000) {
automapview[xx][yy - 1] = 1;
}
return;
break;
case 4:
if (solid) {
if (GetAutomapType(xx, yy + 1, FALSE) == 0x4007)
@ -612,7 +612,7 @@ void SetAutomapView(int x, int y)
if (GetAutomapType(xx - 1, yy - 1, FALSE) & 0x4000)
automapview[xx - 1][yy - 1] = 1;
}
return;
break;
case 5:
if (solid) {
if (GetAutomapType(xx, yy - 1, FALSE) & 0x4000)
@ -622,7 +622,7 @@ void SetAutomapView(int x, int y)
} else if (GetAutomapType(xx - 1, yy, FALSE) & 0x4000) {
automapview[xx - 1][yy] = 1;
}
return;
break;
case 6:
if (solid) {
if (GetAutomapType(xx - 1, yy, FALSE) & 0x4000)
@ -632,7 +632,7 @@ void SetAutomapView(int x, int y)
} else if (GetAutomapType(xx, yy - 1, FALSE) & 0x4000) {
automapview[xx][yy - 1] = 1;
}
return;
break;
}
}

Loading…
Cancel
Save