If it's been so long since the last tick that we completely skip one
segment of a composite path, continue onto the next one. This should fix part of the problem with trophy windows not sliding back out, but doesn't explain why they're not being removed from the overlay entirely (as the path completed functionality should still be called). git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@374 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -46,10 +46,8 @@ public class CompositePath extends Path
|
||||
if (_pathIdx >= 0) {
|
||||
remain = tickPath(_paths[_pathIdx] as Path, curStamp);
|
||||
}
|
||||
if (remain <= 0) {
|
||||
if (++_pathIdx < _paths.length) {
|
||||
return startPath(_paths[_pathIdx] as Path, curStamp, remain);
|
||||
}
|
||||
while (remain <= 0 && ++_pathIdx < _paths.length) {
|
||||
remain = startPath(_paths[_pathIdx] as Path, curStamp, remain);
|
||||
}
|
||||
return remain;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user