mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 00:24:12 +00:00
[qfcc] Handle vector scaling by ints
I missed a change when implementing support for the scale instructions.
This commit is contained in:
parent
2a8fca80a0
commit
1b40cdbab6
2 changed files with 3 additions and 1 deletions
|
@ -75,6 +75,7 @@ get_op_string (int op)
|
||||||
case GE: return ">=";
|
case GE: return ">=";
|
||||||
case LT: return "<";
|
case LT: return "<";
|
||||||
case GT: return ">";
|
case GT: return ">";
|
||||||
|
case '=': return "=";
|
||||||
case '+': return "+";
|
case '+': return "+";
|
||||||
case '-': return "-";
|
case '-': return "-";
|
||||||
case '*': return "*";
|
case '*': return "*";
|
||||||
|
@ -92,6 +93,7 @@ get_op_string (int op)
|
||||||
case 'C': return "<cast>";
|
case 'C': return "<cast>";
|
||||||
case CROSS: return "@cross";
|
case CROSS: return "@cross";
|
||||||
case DOT: return "@dot";
|
case DOT: return "@dot";
|
||||||
|
case SCALE: return "@scale";
|
||||||
default:
|
default:
|
||||||
return "unknown";
|
return "unknown";
|
||||||
}
|
}
|
||||||
|
|
|
@ -258,7 +258,7 @@ static expr_type_t int_float[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static expr_type_t int_vector[] = {
|
static expr_type_t int_vector[] = {
|
||||||
{'*', &type_vector, &type_float, 0},
|
{'*', &type_vector, &type_float, 0, vector_scale},
|
||||||
{0, 0}
|
{0, 0}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue