If a client somehow has a higher version scene than we do, tell them all

about the current scene model instead of informing them that the version
they have is OK. It's not ok!


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@25 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Ray Greenwell
2006-07-13 22:15:37 +00:00
parent d93c79cfd0
commit e76a54c18f
@@ -135,9 +135,12 @@ public class SceneProvider
// check to see if they need a newer version of the scene data // check to see if they need a newer version of the scene data
SceneModel model = scmgr.getScene().getSceneModel(); SceneModel model = scmgr.getScene().getSceneModel();
if (sceneVersion != model.version) {
SceneUpdate[] updates = null;
if (sceneVersion < model.version) { if (sceneVersion < model.version) {
// try getting updates // try getting updates to bring the client to the right version
SceneUpdate[] updates = scmgr.getUpdates(sceneVersion); updates = scmgr.getUpdates(sceneVersion);
}
if (updates != null) { if (updates != null) {
listener.moveSucceededWithUpdates(ploid, config, updates); listener.moveSucceededWithUpdates(ploid, config, updates);
} else { } else {