magic adjustment of textures

This commit is contained in:
Zeno Rogue
2017-12-16 09:03:50 +01:00
parent e2080cd91e
commit bf24550e82
6 changed files with 164 additions and 27 deletions
+7 -5
View File
@@ -4855,6 +4855,12 @@ bool allowIncreasedSight() {
purehookset hooks_drawmap;
transmatrix cview() {
sphereflip = Id;
if(sphereflipped()) sphereflip[2][2] = -1;
return ypush(vid.yshift) * sphereflip * View;
}
void drawthemap() {
callhooks(hooks_drawmap);
@@ -4924,12 +4930,10 @@ void drawthemap() {
arrowtraps.clear();
sphereflip = Id;
profile_start(1);
if(euclid)
drawEuclidean();
else {
if(sphereflipped()) sphereflip[2][2] = -1;
int sr = max(sightrange, ambush_distance);
maxreclevel =
conformal::on ? sr + 2:
@@ -4937,9 +4941,7 @@ void drawthemap() {
if(S3>3) maxreclevel+=2;
drawrec(viewctr,
maxreclevel,
hsOrigin, ypush(vid.yshift) * sphereflip * View);
drawrec(viewctr, maxreclevel, hsOrigin, cview());
}
drawBlizzards();
drawArrowTraps();