mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-25 05:01:24 +00:00
[qfcc] Default math.vector_mult correctly
The check was bogus in that it had `!val == 0` for non-traditional, and was checking the wrong spot for traditional.
This commit is contained in:
parent
974306fa12
commit
fd52c055e0
1 changed files with 2 additions and 2 deletions
|
@ -822,7 +822,7 @@ DecodeArgs (int argc, char **argv)
|
||||||
if (!options_user_set.code.vector_components) {
|
if (!options_user_set.code.vector_components) {
|
||||||
options.code.vector_components = true;
|
options.code.vector_components = true;
|
||||||
}
|
}
|
||||||
if (options.math.vector_mult == 0) {
|
if (!options_user_set.math.vector_mult) {
|
||||||
options.math.vector_mult = QC_DOT;
|
options.math.vector_mult = QC_DOT;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -846,7 +846,7 @@ DecodeArgs (int argc, char **argv)
|
||||||
if (!options_user_set.code.vector_components) {
|
if (!options_user_set.code.vector_components) {
|
||||||
options.code.vector_components = false;
|
options.code.vector_components = false;
|
||||||
}
|
}
|
||||||
if (!options_user_set.math.vector_mult == 0) {
|
if (!options_user_set.math.vector_mult) {
|
||||||
options.math.vector_mult = options.advanced == 1 ? QC_DOT
|
options.math.vector_mult = options.advanced == 1 ? QC_DOT
|
||||||
: QC_HADAMARD;
|
: QC_HADAMARD;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue