mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-06-26 15:12:48 +00:00
fixed the rendering of explosive barrels (and crates)
This commit is contained in:
parent
a375aa7d89
commit
da6582c2ff
@ -1544,7 +1544,7 @@ void celldrawer::draw_features() {
|
|||||||
const int layers = 2 << detaillevel;
|
const int layers = 2 << detaillevel;
|
||||||
for(int z=1; z<=layers; z++) {
|
for(int z=1; z<=layers; z++) {
|
||||||
double zg = zgrad0(0, geom3::actual_wall_height(), z, layers);
|
double zg = zgrad0(0, geom3::actual_wall_height(), z, layers);
|
||||||
queuepolyat(xyzscale(V, zg, zg), cgi.shBarrel, darkena((z&1) ? 0xFF0000 : 0xC00000, 0, 0xFF), PPR(PPR::RED1_SIDE));
|
queuepolyat(xyzscale(V, zg, zg), cgi.shBarrel, darkena((z&1) ? 0xFF0000 : 0xC00000, 0, 0xFF), PPR(PPR::WALL_DECO));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -1734,7 +1734,7 @@ void celldrawer::draw_features() {
|
|||||||
const int layers = 2 << detaillevel;
|
const int layers = 2 << detaillevel;
|
||||||
for(int z=1; z<=layers; z++) {
|
for(int z=1; z<=layers; z++) {
|
||||||
double zg = zgrad0(0, geom3::actual_wall_height(), z, layers);
|
double zg = zgrad0(0, geom3::actual_wall_height(), z, layers);
|
||||||
queuepolyat(xyzscale(V, zg, zg), cgi.shBarrel, darkena((z&1) ? 0xFF0000 : 0xC00000, 0, 0xFF), PPR(PPR::RED1_SIDE));
|
queuepolyat(xyzscale(V, zg, zg), cgi.shBarrel, darkena((z&1) ? 0xFF0000 : 0xC00000, 0, 0xFF), PPR(PPR::WALL_DECO));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user