Replace vector indexing with members

Use .x instead of [0]
Also add vec_add() to util.c
This commit is contained in:
8dcc
2023-07-28 21:56:35 +02:00
parent 8cfead04f9
commit 2a57c69444
4 changed files with 27 additions and 22 deletions

View File

@@ -30,6 +30,7 @@ bool is_friend(cl_entity_t* ent);
char* get_name(int ent_idx);
game_id get_cur_game(void);
vec3_t vec3(float x, float y, float z);
vec3_t vec_add(vec3_t a, vec3_t b);
bool vec_is_zero(vec3_t v);
float vec_len2d(vec3_t v);
void vec_clamp(vec3_t v);