mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-11 18:00: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) {
|
if(wmspatial && c->wall == waBoat) {
|
||||||
nospin = c->wall == waBoat && applyAnimation(c, Vboat, footphase, LAYER_BOAT);
|
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);
|
queuepolyat(Vboat, cgi.shBoatOuter, outcol, PPR::BOATLEV);
|
||||||
Vboat = V;
|
Vboat = V;
|
||||||
}
|
}
|
||||||
if(c->wall == waBoat) {
|
if(c->wall == waBoat) {
|
||||||
nospin = applyAnimation(c, Vboat, footphase, LAYER_BOAT);
|
nospin = applyAnimation(c, Vboat, footphase, LAYER_BOAT);
|
||||||
}
|
}
|
||||||
if(!nospin)
|
if(!nospin && c->mondir != NODIR)
|
||||||
Vboat = Vboat * ddspin(c, c->mondir, M_PI);
|
Vboat = Vboat * ddspin(c, c->mondir, M_PI);
|
||||||
else {
|
else {
|
||||||
transmatrix Vx;
|
transmatrix Vx;
|
||||||
|
Loading…
Reference in New Issue
Block a user