mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-13 22:01:04 -04:00
use built in debug toggle for these annoying volume messages... @cekis
we do need to figure out and fix these though?
This commit is contained in:
@@ -590,19 +590,26 @@ public class script_entry
|
||||
if (object == null || object.getValue() == 0 || !object.isAuthoritative() || !object.isLoaded())
|
||||
{
|
||||
boolean doubleCheck = false;
|
||||
String warning = "WARNING: Java script_entry.runScripts ERROR calling script function " + method + ": invalid self: ";
|
||||
|
||||
if (printDebugInfo) {
|
||||
String warning = "WARNING: Java script_entry.runScripts ERROR calling script function " + method + ": invalid self: ";
|
||||
}
|
||||
|
||||
if (object == null)
|
||||
System.err.println(warning + "no object id");
|
||||
else if (object.getValue() == 0)
|
||||
System.err.println(warning + "obj_id 0");
|
||||
else if (!object.isAuthoritative())
|
||||
{
|
||||
System.err.println(warning + object + " not authoritative");
|
||||
if (printDebugInfo) {
|
||||
System.err.println(warning + object + " not authoritative");
|
||||
}
|
||||
|
||||
// We've seen errors where Java thinks an object is non-authoritative but C thinks the object
|
||||
// is authoritative. _internalIsAuthoritative() will double-check for us and set the obj_id
|
||||
// flag if needed
|
||||
doubleCheck = base_class._internalIsAuthoritative(object);
|
||||
if (doubleCheck)
|
||||
if (printDebugInfo && doubleCheck)
|
||||
{
|
||||
System.err.println("WARNING: object " + object + " is flagged as non-authoritative "+
|
||||
"in Java but is authoritative in C");
|
||||
|
||||
Reference in New Issue
Block a user