majesto-games / curves2

HTML5 implementation of the popular multiplayer game 'achtung die kurve'
https://curves.netlify.com/
0 stars 0 forks source link

Mesh uvs can be undefined #1

Closed Zalastax closed 6 years ago

Zalastax commented 6 years ago

mesh.ts MeshProps requires uvs to not be undefined, client.ts has ClientMesh where uvs can be undefined and GameContainer destructures a ClientMesh into a Mesh. This could lead to Mesh getting props.uvs === undefined.

Why don't we get a compiler error and is MeshProps correctly defined?