]> git.xonotic.org Git - xonotic/xonotic.wiki.git/commitdiff
Update Introduction to QuakeC: remove a reference to an old GMQCC bug
authorterencehill <piuntn@gmail.com>
Fri, 4 Nov 2022 14:13:12 +0000 (14:13 +0000)
committerterencehill <piuntn@gmail.com>
Fri, 4 Nov 2022 14:13:12 +0000 (14:13 +0000)
Introduction-to-QuakeC.md

index 414679b8da9c335580082ccd01346684510f285d..3c17852f2a158154630e027448463a96b6959cb3 100644 (file)
@@ -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).