Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions sku.0/sys.server/compiled/game/script/base_class.java
Original file line number Diff line number Diff line change
Expand Up @@ -1870,19 +1870,16 @@ public static float[] getFloatArrayObjVar(obj_id object, String name)
* @param name the objvar name to search for
* @return the float array, or null if not found
*/
public static Vector getResizeableFloatArrayObjVar(obj_id object, String name)
{
public static Vector getResizeableFloatArrayObjVar(obj_id object, String name) {
float[] array = getFloatArrayObjVar(object, name);
if (array != null)
{
/*
if (array != null) {
Float[] newArray = new Float[array.length];
for ( int i = 0; i < array.length; ++i )
newArray[i] = new Float(array[i]);
for (int i = 0; i < array.length; ++i) {
newArray[i] = Float.valueOf(array[i]);
}
return new Vector(Arrays.asList(newArray));
*/
return new Vector(Arrays.asList(array));
}

return null;
}
/**
Expand Down Expand Up @@ -2609,6 +2606,8 @@ else if (data instanceof Float)
return setObjVar(object, name, ((Float)data).floatValue());
else if (data instanceof float[])
return setObjVar(object, name, (float[])data);
else if (data instanceof Float[])
return setObjVar(object, name, (Float[]) data);
if (data instanceof Boolean)
return setObjVar(object, name, ((Boolean)data).booleanValue());
else if (data instanceof boolean[])
Expand Down Expand Up @@ -26873,3 +26872,4 @@ public static boolean isInAdminTable(obj_id player) throws InterruptedException
}

} // class base_class

Loading