Only update the sprite's orientation if we have a valid one.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1259 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-04-16 18:24:43 +00:00
parent fb74c17fd7
commit 1e5c1bcfe7
@@ -1,5 +1,5 @@
//
// $Id: LineSegmentPath.java,v 1.18 2002/04/16 17:00:33 mdb Exp $
// $Id: LineSegmentPath.java,v 1.19 2002/04/16 18:24:43 mdb Exp $
package com.threerings.media.sprite;
@@ -237,7 +237,9 @@ public class LineSegmentPath
_dest = getNextNode();
// adjust the sprite's orientation
sprite.setOrientation(_dest.dir);
if (_dest.dir != NONE) {
sprite.setOrientation(_dest.dir);
}
// make a note of when we started traversing this node
_nodestamp = startstamp;