mirror of
https://github.com/ioquake/ioq3.git
synced 2025-06-02 01:42:12 +00:00
Mac OS X work...lots of little changes that touch a lot of random places.
Still work to be done, but this at least matches the PowerPC Linux status now. MacOS-specific directory (and XCode project) is gone...this now uses SDL, OpenAL, and the Unix Makefiles. --ryan.
This commit is contained in:
parent
b20b86bbbe
commit
721b9a7d01
61 changed files with 877 additions and 22868 deletions
|
@ -554,7 +554,7 @@ int PS_ReadName(script_t *script, token_t *token)
|
|||
// Changes Globals: -
|
||||
//============================================================================
|
||||
void NumberValue(char *string, int subtype, unsigned long int *intvalue,
|
||||
long double *floatvalue)
|
||||
double *floatvalue)
|
||||
{
|
||||
unsigned long int dotfound = 0;
|
||||
|
||||
|
@ -573,13 +573,13 @@ void NumberValue(char *string, int subtype, unsigned long int *intvalue,
|
|||
} //end if
|
||||
if (dotfound)
|
||||
{
|
||||
*floatvalue = *floatvalue + (long double) (*string - '0') /
|
||||
(long double) dotfound;
|
||||
*floatvalue = *floatvalue + (double) (*string - '0') /
|
||||
(double) dotfound;
|
||||
dotfound *= 10;
|
||||
} //end if
|
||||
else
|
||||
{
|
||||
*floatvalue = *floatvalue * 10.0 + (long double) (*string - '0');
|
||||
*floatvalue = *floatvalue * 10.0 + (double) (*string - '0');
|
||||
} //end else
|
||||
string++;
|
||||
} //end while
|
||||
|
@ -631,7 +631,7 @@ int PS_ReadNumber(script_t *script, token_t *token)
|
|||
int octal, dot;
|
||||
char c;
|
||||
// unsigned long int intvalue = 0;
|
||||
// long double floatvalue = 0;
|
||||
// double floatvalue = 0;
|
||||
|
||||
token->type = TT_NUMBER;
|
||||
//check for a hexadecimal number
|
||||
|
@ -1148,15 +1148,15 @@ void StripSingleQuotes(char *string)
|
|||
// Returns: -
|
||||
// Changes Globals: -
|
||||
//============================================================================
|
||||
long double ReadSignedFloat(script_t *script)
|
||||
double ReadSignedFloat(script_t *script)
|
||||
{
|
||||
token_t token;
|
||||
long double sign = 1;
|
||||
double sign = 1.0;
|
||||
|
||||
PS_ExpectAnyToken(script, &token);
|
||||
if (!strcmp(token.string, "-"))
|
||||
{
|
||||
sign = -1;
|
||||
sign = -1.0;
|
||||
PS_ExpectTokenType(script, TT_NUMBER, 0, &token);
|
||||
} //end if
|
||||
else if (token.type != TT_NUMBER)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue