quake2ts 0.0.269 → 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.
- package/package.json +1 -1
- package/packages/cgame/dist/index.cjs +13 -56
- package/packages/cgame/dist/index.cjs.map +1 -1
- package/packages/cgame/dist/index.d.cts +2 -1
- package/packages/cgame/dist/index.d.ts +2 -1
- package/packages/cgame/dist/index.js +14 -57
- package/packages/cgame/dist/index.js.map +1 -1
- package/packages/client/dist/browser/index.global.js +13 -13
- package/packages/client/dist/browser/index.global.js.map +1 -1
- package/packages/client/dist/cjs/index.cjs +6 -1
- package/packages/client/dist/cjs/index.cjs.map +1 -1
- package/packages/client/dist/esm/index.js +6 -1
- package/packages/client/dist/esm/index.js.map +1 -1
- package/packages/client/dist/tsconfig.tsbuildinfo +1 -1
- package/packages/client/dist/types/index.d.ts.map +1 -1
|
@@ -11665,7 +11665,12 @@ import {
|
|
|
11665
11665
|
import { ViewEffects as ViewEffects3 } from "@quake2ts/cgame";
|
|
11666
11666
|
var ZERO_VEC32 = { x: 0, y: 0, z: 0 };
|
|
11667
11667
|
function createClient(imports) {
|
|
11668
|
-
const
|
|
11668
|
+
const pointContents = (point) => {
|
|
11669
|
+
const zero3 = { x: 0, y: 0, z: 0 };
|
|
11670
|
+
const tr = imports.engine.trace(point, point, zero3, zero3);
|
|
11671
|
+
return tr.contents || 0;
|
|
11672
|
+
};
|
|
11673
|
+
const prediction = new ClientPrediction(imports.engine.trace, pointContents);
|
|
11669
11674
|
const view = new ViewEffects2();
|
|
11670
11675
|
const demoPlayback = new DemoPlaybackController();
|
|
11671
11676
|
const demoHandler = new ClientNetworkHandler(imports);
|