mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
fix a silly bug and an incorrect interpretation of the old code
This commit is contained in:
parent
0e68cf838d
commit
f517dc6ce6
1 changed files with 1 additions and 12 deletions
|
@ -50,7 +50,7 @@ vector_imm_get_key (void *_def, void *unused)
|
|||
def_t *def = (def_t*)_def;
|
||||
static char rep[60];
|
||||
sprintf (rep, "\001vector:%08X\001%08X\001%08X\001",
|
||||
G_INT(def->ofs), G_INT(def->ofs+1), G_INT(def->ofs+1));
|
||||
G_INT(def->ofs), G_INT(def->ofs+1), G_INT(def->ofs+2));
|
||||
return rep;
|
||||
}
|
||||
|
||||
|
@ -115,17 +115,6 @@ PR_ParseImmediate (void)
|
|||
|
||||
Hash_Add (tab, cn);
|
||||
|
||||
if (pr_immediate_type == &type_vector) {
|
||||
int i;
|
||||
|
||||
for (i = 0; i < 3; i++) {
|
||||
def_t *d = PR_NewDef (&type_float, "IMMEDIATE", 0);
|
||||
d->initialized = 1;
|
||||
d->ofs = cn->ofs + i;
|
||||
Hash_Add (float_imm_defs, d);
|
||||
}
|
||||
}
|
||||
|
||||
PR_Lex ();
|
||||
|
||||
return cn;
|
||||
|
|
Loading…
Reference in a new issue