Skip to content

Commit

Permalink
AddTown bin exact fix (diasurgical#653)
Browse files Browse the repository at this point in the history
  • Loading branch information
qndel authored and mewmew committed Mar 14, 2019
1 parent 631cc30 commit 0f95e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/missiles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2217,7 +2217,7 @@ void __fastcall AddTown(int mi, int sx, int sy, int dx, int dy, int midir, int m
missile[mi]._miDelFlag = TRUE;
for (j = 0; j < 6; j++) {
k = CrawlNum[j] + 2;
for (i = 0; i < (unsigned char)CrawlTable[CrawlNum[j]]; i++) {
for (i = (unsigned char)CrawlTable[CrawlNum[j]]; i > 0; i--) {
tx = dx + CrawlTable[k - 1];
ty = dy + CrawlTable[k];
if (tx > 0 && tx < MAXDUNX && ty > 0 && ty < MAXDUNY) {
Expand Down

0 comments on commit 0f95e48

Please sign in to comment.