mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 09:50:34 +00:00
fixed crashes with boats when no direction set
This commit is contained in:
parent
efe4e20cd4
commit
b9623e3fff
@ -784,14 +784,14 @@ void celldrawer::draw_boat() {
|
||||
|
||||
if(wmspatial && c->wall == waBoat) {
|
||||
nospin = c->wall == waBoat && applyAnimation(c, Vboat, footphase, LAYER_BOAT);
|
||||
if(!nospin) Vboat = Vboat * ddspin(c, c->mondir, M_PI);
|
||||
if(!nospin && c->mondir != NODIR) Vboat = Vboat * ddspin(c, c->mondir, M_PI);
|
||||
queuepolyat(Vboat, cgi.shBoatOuter, outcol, PPR::BOATLEV);
|
||||
Vboat = V;
|
||||
}
|
||||
if(c->wall == waBoat) {
|
||||
nospin = applyAnimation(c, Vboat, footphase, LAYER_BOAT);
|
||||
}
|
||||
if(!nospin)
|
||||
if(!nospin && c->mondir != NODIR)
|
||||
Vboat = Vboat * ddspin(c, c->mondir, M_PI);
|
||||
else {
|
||||
transmatrix Vx;
|
||||
|
Loading…
Reference in New Issue
Block a user