From: terencehill Date: Fri, 4 Nov 2022 14:13:12 +0000 (+0000) Subject: Update Introduction to QuakeC: remove a reference to an old GMQCC bug X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fxonotic.wiki.git;a=commitdiff_plain;h=15cce0c238e76df13fbf77872f2f77c877abf6e9;ds=sidebyside Update Introduction to QuakeC: remove a reference to an old GMQCC bug --- 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).