Ticket #2067: mustang_sink.patch

File mustang_sink.patch, 610 bytes (added by scythetwirler, 11 years ago)

Fixes sinking on water.

  • binaries/data/mods/public/simulation/components/UnitMotionFlying.js

     
    7373    {
    7474        if (this.speed > 0 && this.onGround)
    7575        {           
     76            if (pos.y <= cmpWaterManager.GetWaterLevel(pos.x, pos.z) && this.template.DiesInWater)
     77                this.waterDeath = true;
    7678            this.pitch = 0;
    7779            // Deaccelerate forwards...at a very reduced pace.
    7880            if (this.waterDeath)