Add support for int and quaternion values in saved games.

This commit is contained in:
Bill Currie 2013-01-08 18:09:22 +09:00
parent 3e2a40684c
commit 9155338404

View file

@ -99,9 +99,15 @@ PR_UglyValueString (progs_t *pr, etype_t type, pr_type_t *val)
case ev_float:
dsprintf (line, "%f", val->float_var);
break;
case ev_integer:
dsprintf (line, "%d", val->integer_var);
break;
case ev_vector:
dsprintf (line, "%f %f %f", VectorExpand (val->vector_var));
break;
case ev_quat:
dsprintf (line, "%f %f %f %f", QuatExpand (val->quat_var));
break;
default:
dsprintf (line, "bad type %i", type);
break;