mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-02 00:06:36 +00:00
Remove trailing whitespace
This commit is contained in:
@@ -231,8 +231,8 @@ bool atobool(char* iBool) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
* solar: generate a random integer in the range low-high
|
||||
/*
|
||||
* solar: generate a random integer in the range low-high
|
||||
* this should be used instead of the rand()%limit method
|
||||
*/
|
||||
int MakeRandomInt(int low, int high)
|
||||
@@ -255,7 +255,7 @@ double MakeRandomFloat(double low, double high)
|
||||
char *CleanMobName(const char *in, char *out)
|
||||
{
|
||||
unsigned i, j;
|
||||
|
||||
|
||||
for(i = j = 0; i < strlen(in); i++)
|
||||
{
|
||||
// convert _ to space.. any other conversions like this? I *think* this
|
||||
|
||||
@@ -14,8 +14,8 @@ EQEmuDatabase::EQEmuDatabase(std::string ServerName, std::string DatabaseName, s
|
||||
_mysql = mysql_init(NULL);
|
||||
if(_mysql)
|
||||
{
|
||||
if (!mysql_real_connect(_mysql, GetServerName().c_str(), GetDBUsername().c_str(),
|
||||
GetDBPassword().c_str(), GetDatabaseName().c_str(), 0, NULL, 0))
|
||||
if (!mysql_real_connect(_mysql, GetServerName().c_str(), GetDBUsername().c_str(),
|
||||
GetDBPassword().c_str(), GetDatabaseName().c_str(), 0, NULL, 0))
|
||||
{
|
||||
cout << "MYSQL CONNECT FAILED: " << endl;
|
||||
cout << GetServerName() << endl;
|
||||
@@ -48,7 +48,7 @@ void EQEmuDatabase::GetPlayer(std::string name)
|
||||
MYSQL_RES *res;
|
||||
MYSQL_ROW row;
|
||||
char * mQuery = 0;
|
||||
MakeAnyLenString(&mQuery, "SELECT profile, id FROM character_ WHERE name='%s'", name.c_str());
|
||||
MakeAnyLenString(&mQuery, "SELECT profile, id FROM character_ WHERE name='%s'", name.c_str());
|
||||
if (mysql_query(_mysql, mQuery)) {
|
||||
cout << "Query failed: " << mQuery << endl;
|
||||
return;
|
||||
@@ -85,7 +85,7 @@ void EQEmuDatabase::GetPlayers()
|
||||
MYSQL_RES *res;
|
||||
MYSQL_ROW row;
|
||||
char * mQuery = 0;
|
||||
MakeAnyLenString(&mQuery, "SELECT profile, id FROM character_");
|
||||
MakeAnyLenString(&mQuery, "SELECT profile, id FROM character_");
|
||||
if (mysql_query(_mysql, mQuery)) {
|
||||
cout << "Query failed: " << mQuery << endl;
|
||||
return;
|
||||
|
||||
@@ -98,7 +98,7 @@ enum AdventureObjective
|
||||
Adventure_Rescue = 4
|
||||
};
|
||||
|
||||
struct AdventureInfo
|
||||
struct AdventureInfo
|
||||
{
|
||||
uint32 id;
|
||||
std::string zone_name;
|
||||
@@ -522,7 +522,7 @@ struct SpellBuffFade_Struct {
|
||||
struct PetBuff_Struct {
|
||||
/*000*/ uint32 petid;
|
||||
/*004*/ uint32 spellid[BUFF_COUNT];
|
||||
/*104*/ uint32 unknown700;
|
||||
/*104*/ uint32 unknown700;
|
||||
/*108*/ uint32 unknown701;
|
||||
/*112*/ uint32 unknown702;
|
||||
/*116*/ uint32 unknown703;
|
||||
@@ -1818,7 +1818,7 @@ struct AdventureLeaderboard_Struct
|
||||
/*008*/ int32 success;
|
||||
/*012*/ int32 failure;
|
||||
/*016*/ int32 our_rank;
|
||||
/*020*/
|
||||
/*020*/
|
||||
};
|
||||
|
||||
/*struct Item_Shop_Struct {
|
||||
@@ -2513,7 +2513,7 @@ struct BarterSearchRequest_Struct {
|
||||
|
||||
struct BuyerItemSearchLinkRequest_Struct {
|
||||
/*000*/ uint32 Action; // 0x00000015
|
||||
/*004*/ uint32 ItemID;
|
||||
/*004*/ uint32 ItemID;
|
||||
/*008*/ uint32 Unknown008;
|
||||
/*012*/ uint32 Unknown012;
|
||||
};
|
||||
@@ -3849,7 +3849,7 @@ struct RespawnWindow_Struct {
|
||||
/**
|
||||
* Shroud spawn. For others shrouding, this has their spawnId and
|
||||
* spawnStruct.
|
||||
*
|
||||
*
|
||||
* Length: 586
|
||||
* OpCode: OP_Shroud
|
||||
*/
|
||||
|
||||
@@ -22,10 +22,10 @@ INIParser::~INIParser()
|
||||
void INIParser::Parse()
|
||||
{
|
||||
FILE *fp;
|
||||
if(fp = fopen(file, "r"))
|
||||
if(fp = fopen(file, "r"))
|
||||
{
|
||||
char Option[255], Param[255];
|
||||
while(!feof(fp))
|
||||
while(!feof(fp))
|
||||
{
|
||||
ReadLine(fp, Option, Param);
|
||||
AddOption(std::string(Option), std::string(Param));
|
||||
@@ -34,12 +34,12 @@ void INIParser::Parse()
|
||||
}
|
||||
}
|
||||
|
||||
void INIParser::ReadLine(FILE *fp, char *Option, char *Param)
|
||||
void INIParser::ReadLine(FILE *fp, char *Option, char *Param)
|
||||
{
|
||||
typedef enum ReadingState { ReadingOption, ReadingParameter };
|
||||
|
||||
ReadingState State = ReadingOption;
|
||||
|
||||
|
||||
int StrIndex = 0;
|
||||
char ch;
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ public:
|
||||
~INIParser();
|
||||
void Parse();
|
||||
void ReadLine(FILE *fp, char *Option, char *Param);
|
||||
|
||||
|
||||
void AddOption(std::string option, std::string param);
|
||||
std::string GetOption(std::string option);
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ int main(int argc, char* argv[])
|
||||
std::string player_name = argv[4];
|
||||
program_action = EQEmuString::ToUpper(program_action);
|
||||
program_field = EQEmuString::ToUpper(program_field);
|
||||
|
||||
|
||||
emu_db = new EQEmuDatabase(host.c_str(), datab.c_str(), user.c_str(), pass.c_str());
|
||||
if(!emu_db->Connected())
|
||||
{
|
||||
@@ -61,7 +61,7 @@ int main(int argc, char* argv[])
|
||||
{
|
||||
player_entry pe = (*iter);
|
||||
PlayerProfile_Struct *m_pp = (PlayerProfile_Struct*)pe.data;
|
||||
|
||||
|
||||
if(program_action == "SET")
|
||||
{
|
||||
m_pp->ldon_points_available = 0;
|
||||
|
||||
@@ -68,7 +68,7 @@ typedef const char Const_char; //for perl XS
|
||||
#define strcasecmp _stricmp
|
||||
typedef void ThreadReturnType;
|
||||
// #define THREAD_RETURN(x) return;
|
||||
#define THREAD_RETURN(x) _endthread(); return;
|
||||
#define THREAD_RETURN(x) _endthread(); return;
|
||||
#else
|
||||
typedef void* ThreadReturnType;
|
||||
// typedef int SOCKET;
|
||||
|
||||
Reference in New Issue
Block a user