1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-25 17:40:36 +00:00

Crystal World and Warped Coast work correctly

This commit is contained in:
Zeno Rogue 2018-08-20 17:30:36 +02:00
parent 1f356b1dff
commit 6174261535

View File

@ -3125,10 +3125,14 @@ void floorShadow(cell *c, const transmatrix& V, int col) {
void set_maywarp_floor(cell *c) { void set_maywarp_floor(cell *c) {
bool warp = isWarped(c); bool warp = isWarped(c);
if(warp && !shmup::on && geosupport_football() == 2) { if(warp && !shmup::on && geosupport_football() == 2) {
if(!stdhyperbolic) {
set_floor(shTriheptaFloor);
return;
}
auto si = patterns::getpatterninfo(c, 0, 0); auto si = patterns::getpatterninfo(c, 0, 0);
if(si.id == 0 || si.id == 1) if(si.id == 0 || si.id == 1)
set_floor(shTriheptaFloor); set_floor(shTriheptaFloor);
else if(si.id >= 14 || !stdhyperbolic) else if(si.id >= 14)
set_floor(shFloor); set_floor(shFloor);
else else
set_floor(applyPatterndir(c, si), shTriheptaSpecial[si.id]); set_floor(applyPatterndir(c, si), shTriheptaSpecial[si.id]);