quake2ts 0.0.268 → 0.0.270

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11693,7 +11693,12 @@ var import_cgame4 = require("@quake2ts/cgame");
11693
11693
  var import_cgame5 = require("@quake2ts/cgame");
11694
11694
  var ZERO_VEC32 = { x: 0, y: 0, z: 0 };
11695
11695
  function createClient(imports) {
11696
- const prediction = new import_cgame2.ClientPrediction(imports.engine.trace);
11696
+ const pointContents = (point) => {
11697
+ const zero3 = { x: 0, y: 0, z: 0 };
11698
+ const tr = imports.engine.trace(point, point, zero3, zero3);
11699
+ return tr.contents || 0;
11700
+ };
11701
+ const prediction = new import_cgame2.ClientPrediction(imports.engine.trace, pointContents);
11697
11702
  const view = new import_cgame3.ViewEffects();
11698
11703
  const demoPlayback = new DemoPlaybackController();
11699
11704
  const demoHandler = new ClientNetworkHandler(imports);