Some fixes to get the old miso viewer running.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3435 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2005-03-29 19:12:40 +00:00
parent be8a755dad
commit e47f950695
2 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ foreach $dir (@dirs) {
$classpath = "$classpath:$jlib";
# specify our server root (this is for server code)
my $rootarg = "-Dresource_url=file:$realroot/rsrc -Dtest_dir=$realroot";
my $rootarg = "-Dresource_dir=$realroot/rsrc -Dtest_dir=$realroot";
my $pid_file = undef;
my $i = 0;
@@ -1,5 +1,5 @@
//
// $Id: ViewerSceneViewPanel.java,v 1.60 2004/08/27 02:21:01 mdb Exp $
// $Id$
//
// Narya library - tools for developing networked games
// Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved
@@ -79,6 +79,12 @@ public class ViewerSceneViewPanel extends MisoScenePanel
{
super.setSceneModel(model);
Log.info("Using " + model + ".");
}
// documentation inherited
public void doLayout ()
{
super.doLayout();
// now that we have a scene, we can create valid paths for our
// decoy sprites
@@ -188,6 +194,9 @@ public class ViewerSceneViewPanel extends MisoScenePanel
protected void createRandomPath (CharacterSprite s)
{
Dimension d = _vbounds.getSize();
if (d.width <= 0 || d.height <= 0) {
return;
}
int x, y;
do {
x = RandomUtil.getInt(d.width);