From 15cce0c238e76df13fbf77872f2f77c877abf6e9 Mon Sep 17 00:00:00 2001 From: terencehill Date: Fri, 4 Nov 2022 14:13:12 +0000 Subject: [PATCH] Update Introduction to QuakeC: remove a reference to an old GMQCC bug --- Introduction-to-QuakeC.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/Introduction-to-QuakeC.md b/Introduction-to-QuakeC.md index 414679b..3c17852 100644 --- a/Introduction-to-QuakeC.md +++ b/Introduction-to-QuakeC.md @@ -126,8 +126,6 @@ vector This type is basically three floats together. By declaring a `vector v`, you also create three floats `v_x`, `v_y` and `v_z` (note the underscore) that contain the components of the vector. GMQCC also accepts dot notation to access these components: `v.x`, `v.y` and `v.z` -**COMPILER BUG:** Always use `entity.vector_x = float` instead of `entity.vector.x = float`, as the latter creates incorrect code! Reading from vectors is fine, however. - Vectors can be used with the usual mathematical operators in the usual way used in mathematics. For example, `vector + vector` simply returns the sum of the vectors, and `vector * float` scales the vector by the given factor. Multiplying two vectors yields their dot product of type float. Common functions to be used on vectors are `vlen` (vector length), `normalize` (vector divided by its length, i.e. a unit vector). -- 2.39.2