Com.DPrintf(String, Vargs) -> slf4j
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
package lwjake2.qcommon;
|
package lwjake2.qcommon;
|
||||||
|
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import lwjake2.Defines;
|
import lwjake2.Defines;
|
||||||
import lwjake2.Globals;
|
import lwjake2.Globals;
|
||||||
import lwjake2.game.cmodel_t;
|
import lwjake2.game.cmodel_t;
|
||||||
@@ -36,6 +37,7 @@ import java.nio.ByteOrder;
|
|||||||
import java.nio.IntBuffer;
|
import java.nio.IntBuffer;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
|
@Slf4j
|
||||||
public class CM {
|
public class CM {
|
||||||
private static final FileSystem fileSystem = BaseQ2FileSystem.getInstance();
|
private static final FileSystem fileSystem = BaseQ2FileSystem.getInstance();
|
||||||
|
|
||||||
@@ -331,15 +333,11 @@ public class CM {
|
|||||||
}
|
}
|
||||||
out.headnode = in.headnode;
|
out.headnode = in.headnode;
|
||||||
if (debugloadmap) {
|
if (debugloadmap) {
|
||||||
Com
|
log.debug("|{}|{}|{}| {}|{}|{}| {}|{}|{}|",
|
||||||
.DPrintf(
|
out.headnode,
|
||||||
"|%6i|%8.2f|%8.2f|%8.2f| %8.2f|%8.2f|%8.2f| %8.2f|%8.2f|%8.2f|\n",
|
out.origin[0], out.origin[1], out.origin[2],
|
||||||
new Vargs().add(out.headnode)
|
out.mins[0], out.mins[1], out.mins[2],
|
||||||
.add(out.origin[0]).add(out.origin[1])
|
out.maxs[0], out.maxs[1], out.maxs[2]);
|
||||||
.add(out.origin[2]).add(out.mins[0])
|
|
||||||
.add(out.mins[1]).add(out.mins[2]).add(
|
|
||||||
out.maxs[0]).add(out.maxs[1])
|
|
||||||
.add(out.maxs[2]));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -378,9 +376,7 @@ public class CM {
|
|||||||
out.c.value = in.value;
|
out.c.value = in.value;
|
||||||
|
|
||||||
if (debugloadmap) {
|
if (debugloadmap) {
|
||||||
Com.DPrintf("|%20s|%20s|%6i|%6i|\n", new Vargs()
|
log.debug("|{}|{}|{}|{}|", out.c.name, out.rname, out.c.value, out.c.flags);
|
||||||
.add(out.c.name).add(out.rname).add(out.c.value).add(
|
|
||||||
out.c.flags));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -422,8 +418,7 @@ public class CM {
|
|||||||
out.children[j] = child;
|
out.children[j] = child;
|
||||||
}
|
}
|
||||||
if (debugloadmap) {
|
if (debugloadmap) {
|
||||||
Com.DPrintf("|%6i| %6i| %6i|\n", new Vargs().add(in.planenum)
|
log.debug("|{}| {}| {}|", in.planenum, out.children[0], out.children[1]);
|
||||||
.add(out.children[0]).add(out.children[1]));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -457,10 +452,7 @@ public class CM {
|
|||||||
out.contents = in.contents;
|
out.contents = in.contents;
|
||||||
|
|
||||||
if (debugloadmap) {
|
if (debugloadmap) {
|
||||||
Com
|
log.debug("| {}| {}| {}|", out.firstbrushside, out.numsides, Integer.toHexString(out.contents));
|
||||||
.DPrintf("| %6i| %6i| %8X|\n", new Vargs().add(
|
|
||||||
out.firstbrushside).add(out.numsides).add(
|
|
||||||
out.contents));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -507,9 +499,9 @@ public class CM {
|
|||||||
numclusters = out.cluster + 1;
|
numclusters = out.cluster + 1;
|
||||||
|
|
||||||
if (debugloadmap) {
|
if (debugloadmap) {
|
||||||
Com.DPrintf("|%8x|%6i|%6i|%6i|\n", new Vargs()
|
log.debug("|{}|{}|{}|{}|{}|",
|
||||||
.add(out.contents).add(out.cluster).add(out.area).add(
|
Integer.toHexString(out.contents), out.cluster, out.area,
|
||||||
out.firstleafbrush).add(out.numleafbrushes));
|
out.firstleafbrush, out.numleafbrushes);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -581,10 +573,9 @@ public class CM {
|
|||||||
out.signbits = (byte) bits;
|
out.signbits = (byte) bits;
|
||||||
|
|
||||||
if (debugloadmap) {
|
if (debugloadmap) {
|
||||||
Com.DPrintf("|%6.2f|%6.2f|%6.2f| %10.2f|%3i| %1i|\n",
|
log.debug("|{}|{}|{}| {}|{}| {}|",
|
||||||
new Vargs().add(out.normal[0]).add(out.normal[1]).add(
|
out.normal[0], out.normal[1], out.normal[2],
|
||||||
out.normal[2]).add(out.dist).add(out.type).add(
|
out.dist, out.type, out.signbits);
|
||||||
out.signbits));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -623,7 +614,7 @@ public class CM {
|
|||||||
for (i = 0; i < count; i++) {
|
for (i = 0; i < count; i++) {
|
||||||
out[i] = bb.getShort();
|
out[i] = bb.getShort();
|
||||||
if (debugloadmap) {
|
if (debugloadmap) {
|
||||||
Com.DPrintf("|%6i|%6i|\n", new Vargs().add(i).add(out[i]));
|
log.debug("|{}|{}|", i, out[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -676,7 +667,7 @@ public class CM {
|
|||||||
out.surface = map_surfaces[j];
|
out.surface = map_surfaces[j];
|
||||||
|
|
||||||
if (debugloadmap) {
|
if (debugloadmap) {
|
||||||
Com.DPrintf("| %6i| %6i|\n", new Vargs().add(num).add(j));
|
log.debug("| {}| {}|", num, j);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -715,8 +706,7 @@ public class CM {
|
|||||||
out.floodvalid = 0;
|
out.floodvalid = 0;
|
||||||
out.floodnum = 0;
|
out.floodnum = 0;
|
||||||
if (debugloadmap) {
|
if (debugloadmap) {
|
||||||
Com.DPrintf("| %6i| %6i|\n", new Vargs()
|
log.debug("| {}| {}|", out.numareaportals, out.firstareaportal);
|
||||||
.add(out.numareaportals).add(out.firstareaportal));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -752,8 +742,7 @@ public class CM {
|
|||||||
out.otherarea = in.otherarea;
|
out.otherarea = in.otherarea;
|
||||||
|
|
||||||
if (debugloadmap) {
|
if (debugloadmap) {
|
||||||
Com.DPrintf("|%6i|%6i|\n", new Vargs().add(out.portalnum).add(
|
log.debug("|{}|{}|", out.portalnum, out.otherarea);
|
||||||
out.otherarea));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user