Browse Source

Only draw towners on their base tile (#5171)

pull/5150/head
Andrew James 4 years ago committed by GitHub
parent
commit
480ab945e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      Source/engine/render/scrollrt.cpp

2
Source/engine/render/scrollrt.cpp

@ -752,6 +752,8 @@ void DrawMonsterHelper(const Surface &out, Point tilePosition, Point targetBuffe
mi = abs(mi) - 1;
if (leveltype == DTYPE_TOWN) {
if (isNegativeMonster)
return;
auto &towner = Towners[mi];
int px = targetBufferPosition.x - CalculateWidth2(towner._tAnimWidth);
const Point position { px, targetBufferPosition.y };

Loading…
Cancel
Save