From 072bea87c4ac0bafb75912355b248b8dafb5b37e Mon Sep 17 00:00:00 2001 From: divverent Date: Wed, 9 Apr 2014 13:05:42 +0000 Subject: [PATCH] Argh, had to update the VM_sprintf extension spec. No code change. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12062 d7cf8633-e32d-0410-b094-e92efae38249 --- dpdefs/dpextensions.qc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dpdefs/dpextensions.qc b/dpdefs/dpextensions.qc index 652bb0cc..7364e3d5 100644 --- a/dpdefs/dpextensions.qc +++ b/dpdefs/dpextensions.qc @@ -1026,12 +1026,12 @@ string(string format, ...) sprintf = #627; // flags: #0- + // optional: , *, or *$ for the field width (width is read before value and precision) // optional: ., .*, or .*$ for the precision (precision is read before value) -// length modifiers: h for forcing a float, l for forcing an int/entity (by default, %d etc. cast a float to int) +// length modifiers: h for forcing a float, l for forcing an entity (by default, %d etc. cast a float to int), ll for forcing an int // conversions: -// d takes a float if no length is specified or h is, and an int/entity if l is specified as length, and cast it to an int -// i takes an int/entity if no length is specified or i is, and a float if h is specified as length, and cast it to an int -// ouxXc take a float if no length is specified or h is, and an int/entity if l is specified as length, and cast it to an unsigned int -// eEfFgG take a float if no length is specified or h is, and an int/entity if l is specified as length, and cast it to a double +// d takes a float if no length is specified or h is, and an entity if l is specified as length, and an int if ll is specified as length, and cast it to an int +// i takes an entity if no length is specified or l is, and a float if h is specified as length, and an int if ll is specified as length, and cast it to an int +// ouxXc take a float if no length is specified or h is, and an entity if l is specified as length, and an int if ll is specified as length, and cast it to an unsigned int +// eEfFgG take a float if no length is specified or h is, and an entity if l is specified as length, and an int if ll is specified as length, and cast it to a double // s takes a string // vV takes a vector, and processes the three components as if it were a gG for all three components, separated by space // For conversions s and c, the flag # makes precision and width interpreted -- 2.39.2