diff --git a/Source/automap.cpp b/Source/automap.cpp index e32cf790c..1312ee946 100644 --- a/Source/automap.cpp +++ b/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; } }