fixed crashes with boats when no direction set

This commit is contained in:
Zeno Rogue 2020-06-03 11:44:19 +02:00
parent efe4e20cd4
commit b9623e3fff
1 changed files with 2 additions and 2 deletions

View File

@ -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;