1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-10-18 06:30:41 +00:00

relhell:: ads:: barrier-walls crash into

This commit is contained in:
Zeno Rogue 2024-10-01 22:16:43 +02:00
parent ea92d84b3e
commit afadd898a2
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ void fire() {
hybrid::in_underlying_geometry([&] {
gen_terrain(c1, ci);
});
if(among(ci.type, wtSolid, wtDestructible)) {
if(among(ci.type, wtSolid, wtDestructible, wtBarrier)) {
r->life_end = t;
auto Scell_inv = ads_inverse(Scell);

View File

@ -468,7 +468,7 @@ void handle_crashes() {
auto w = hybrid::get_where(c);
auto& ci = ci_at[w.first];
ld t = rel.shift + w.second * cgi.plevel;
if(ci.type == wtDestructible || ci.type == wtSolid || (ci.type == wtGate && (int(floor(t)) & 3) == 0)) {
if(ci.type == wtDestructible || ci.type == wtSolid || (ci.type == wtGate && (int(floor(t)) & 3) == 0) || ci.type == wtBarrier) {
if(!crashed && ship_pt > invincibility_pt) println(hlog, "crashed at t = ", t / TAU, " shift = ", rel.shift/TAU, " sec = ", w.second*cgi.plevel/TAU);
crashed = true;
}