mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-05-30 00:10:40 +00:00
more quaternion work (should be working, haven't come up with tests yet)
This commit is contained in:
parent
4882005a49
commit
fc2413ff72
7 changed files with 33 additions and 7 deletions
|
@ -649,9 +649,10 @@ PR_Sprintf (progs_t *pr, dstring_t *result, const char *name,
|
|||
fi = &(*fi)->next;
|
||||
break;
|
||||
case 'v':
|
||||
case 'q':
|
||||
// vector
|
||||
{
|
||||
int i;
|
||||
int i, count = 3;
|
||||
int flags = (*fi)->flags;
|
||||
int precision = (*fi)->precision;
|
||||
unsigned minWidth = (*fi)->minFieldWidth;
|
||||
|
@ -660,7 +661,10 @@ PR_Sprintf (progs_t *pr, dstring_t *result, const char *name,
|
|||
(*fi)->precision = -1;
|
||||
(*fi)->minFieldWidth = 0;
|
||||
|
||||
for (i = 0; i < 3; i++) {
|
||||
if (*c == 'q')
|
||||
count = 4;
|
||||
|
||||
for (i = 0; i < count; i++) {
|
||||
if (i == 0) {
|
||||
(*fi)->type = 's';
|
||||
(*fi)->data.string_var = "'";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue