mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-15 11:45:48 +00:00
relhell:: ads:: barrier-walls crash into
This commit is contained in:
parent
ea92d84b3e
commit
afadd898a2
@ -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);
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user