mirror of
https://github.com/demostf/demo.js
synced 2026-06-03 16:44:12 +02:00
fix parsing vectors
This commit is contained in:
parent
f6d0890aff
commit
0614383a58
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@ export class SendPropParser {
|
|||
static readVector(propDefinition: SendPropDefinition, stream: BitStream): Vector {
|
||||
const x = SendPropParser.readFloat(propDefinition, stream);
|
||||
const y = SendPropParser.readFloat(propDefinition, stream);
|
||||
const z = (propDefinition.hasFlag(SendPropFlag.SPROP_NORMAL)) ? SendPropParser.readFloat(propDefinition, stream) : 0;
|
||||
const z = (!propDefinition.hasFlag(SendPropFlag.SPROP_NORMAL)) ? SendPropParser.readFloat(propDefinition, stream) : 0;
|
||||
return new Vector(x, y, z);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue