Core: Fixed a few warnings and silly typos in scripts
This commit is contained in:
@@ -500,10 +500,10 @@ namespace VMAP
|
|||||||
{
|
{
|
||||||
model.setGroupModels(groupsArray);
|
model.setGroupModels(groupsArray);
|
||||||
|
|
||||||
std::string filename(iSrcDir);
|
std::string worldModelFileName(iSrcDir);
|
||||||
filename.push_back('/');
|
worldModelFileName.push_back('/');
|
||||||
filename.append(pModelFilename).append(".vmo");
|
worldModelFileName.append(pModelFilename).append(".vmo");
|
||||||
success = model.writeFile(filename);
|
success = model.writeFile(worldModelFileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
//std::cout << "readRawFile2: '" << pModelFilename << "' tris: " << nElements << " nodes: " << nNodes << std::endl;
|
//std::cout << "readRawFile2: '" << pModelFilename << "' tris: " << nElements << " nodes: " << nNodes << std::endl;
|
||||||
|
|||||||
@@ -443,9 +443,10 @@ DumpReturn PlayerDumpReader::LoadDump(const std::string& file, uint32 account, s
|
|||||||
typedef PetIds::value_type PetIdsPair;
|
typedef PetIds::value_type PetIdsPair;
|
||||||
PetIds petids;
|
PetIds petids;
|
||||||
|
|
||||||
uint8 gender;
|
uint8 gender = GENDER_NONE;
|
||||||
uint8 race;
|
uint8 race = RACE_NONE;
|
||||||
uint8 playerClass;
|
uint8 playerClass = 0;
|
||||||
|
|
||||||
SQLTransaction trans = CharacterDatabase.BeginTransaction();
|
SQLTransaction trans = CharacterDatabase.BeginTransaction();
|
||||||
while (!feof(fin))
|
while (!feof(fin))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ class boss_ragnaros : public CreatureScript
|
|||||||
|
|
||||||
void KilledUnit(Unit* /*victim*/)
|
void KilledUnit(Unit* /*victim*/)
|
||||||
{
|
{
|
||||||
if (urand(0, 99 < 25))
|
if (urand(0, 99) < 25)
|
||||||
DoScriptText(SAY_KILL, me);
|
DoScriptText(SAY_KILL, me);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ public:
|
|||||||
{
|
{
|
||||||
if (m_instance)
|
if (m_instance)
|
||||||
{
|
{
|
||||||
if (m_instance->GetData(TYPE_MOGRAINE_AND_WHITE_EVENT != NOT_STARTED))
|
if (m_instance->GetData(TYPE_MOGRAINE_AND_WHITE_EVENT) != NOT_STARTED)
|
||||||
m_instance->SetData(TYPE_MOGRAINE_AND_WHITE_EVENT, FAIL);
|
m_instance->SetData(TYPE_MOGRAINE_AND_WHITE_EVENT, FAIL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user