mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 07:21:48 +00:00
missed two string conversion functions. Moved them to StringUtil
This commit is contained in:
parent
373ff66240
commit
9a139a7604
@ -353,18 +353,6 @@ static unsigned int case_6 (void){
|
|||||||
// end WELL RNG code
|
// end WELL RNG code
|
||||||
|
|
||||||
|
|
||||||
const char *ConvertArray(int input, char *returnchar)
|
|
||||||
{
|
|
||||||
sprintf(returnchar, "%i" ,input);
|
|
||||||
return returnchar;
|
|
||||||
}
|
|
||||||
|
|
||||||
const char *ConvertArrayF(float input, char *returnchar)
|
|
||||||
{
|
|
||||||
sprintf(returnchar, "%0.2f", input);
|
|
||||||
return returnchar;
|
|
||||||
}
|
|
||||||
|
|
||||||
float EQ13toFloat(int d)
|
float EQ13toFloat(int d)
|
||||||
{
|
{
|
||||||
return ( float(d)/float(1<<2));
|
return ( float(d)/float(1<<2));
|
||||||
|
|||||||
@ -96,8 +96,7 @@ void CoutTimestamp(bool ms = true);
|
|||||||
int MakeRandomInt(int low, int high);
|
int MakeRandomInt(int low, int high);
|
||||||
double MakeRandomFloat(double low, double high);
|
double MakeRandomFloat(double low, double high);
|
||||||
|
|
||||||
const char *ConvertArray(int input, char *returnchar);
|
|
||||||
const char *ConvertArrayF(float input, char *returnchar);
|
|
||||||
float EQ13toFloat(int d);
|
float EQ13toFloat(int d);
|
||||||
float NewEQ13toFloat(int d);
|
float NewEQ13toFloat(int d);
|
||||||
float EQ19toFloat(int d);
|
float EQ19toFloat(int d);
|
||||||
|
|||||||
@ -320,3 +320,15 @@ char *RemoveApostrophes(const char *s)
|
|||||||
|
|
||||||
return NewString;
|
return NewString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char *ConvertArray(int input, char *returnchar)
|
||||||
|
{
|
||||||
|
sprintf(returnchar, "%i" ,input);
|
||||||
|
return returnchar;
|
||||||
|
}
|
||||||
|
|
||||||
|
const char *ConvertArrayF(float input, char *returnchar)
|
||||||
|
{
|
||||||
|
sprintf(returnchar, "%0.2f", input);
|
||||||
|
return returnchar;
|
||||||
|
}
|
||||||
|
|||||||
@ -49,6 +49,9 @@ bool strn0cpyt(char* dest, const char* source, uint32 size);
|
|||||||
|
|
||||||
char *CleanMobName(const char *in, char *out);
|
char *CleanMobName(const char *in, char *out);
|
||||||
|
|
||||||
|
const char *ConvertArray(int input, char *returnchar);
|
||||||
|
const char *ConvertArrayF(float input, char *returnchar);
|
||||||
|
|
||||||
void RemoveApostrophes(std::string &s);
|
void RemoveApostrophes(std::string &s);
|
||||||
char *RemoveApostrophes(const char *s);
|
char *RemoveApostrophes(const char *s);
|
||||||
|
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
#include "../common/features.h"
|
#include "../common/features.h"
|
||||||
#include "masterentity.h"
|
#include "masterentity.h"
|
||||||
#include "StringIDs.h"
|
#include "StringIDs.h"
|
||||||
#include "../common/MiscFunctions.h"
|
#include "../common/StringUtil.h"
|
||||||
#include "../common/rulesys.h"
|
#include "../common/rulesys.h"
|
||||||
#include "QuestParserCollection.h"
|
#include "QuestParserCollection.h"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user