[9384] Resore use uint64 instead time_t in query, some other fixes.

This commit is contained in:
VladimirMangos 2010-02-14 21:10:29 +03:00
parent 5beb853bc4
commit f4c38044c4
6 changed files with 10 additions and 10 deletions

View file

@ -325,7 +325,7 @@ void LoadDBCStores(const std::string& dataPath)
const uint32 DBCFilesCount = 84; const uint32 DBCFilesCount = 84;
barGoLink bar( DBCFilesCount ); barGoLink bar( (int)DBCFilesCount );
StoreProblemList bad_dbc_files; StoreProblemList bad_dbc_files;

View file

@ -639,7 +639,7 @@ void InstanceSaveManager::_ResetOrWarnAll(uint32 mapid, Difficulty difficulty, b
uint32 period = mapDiff->resetTime * DAY; uint32 period = mapDiff->resetTime * DAY;
time_t next_reset = ((now + timeLeft + MINUTE) / DAY * DAY) + period + diff; time_t next_reset = ((now + timeLeft + MINUTE) / DAY * DAY) + period + diff;
// update it in the DB // update it in the DB
CharacterDatabase.PExecute("UPDATE instance_reset SET resettime = '"UI64FMTD"' WHERE mapid = '%d' AND difficulty = '%d'", next_reset, mapid, difficulty); CharacterDatabase.PExecute("UPDATE instance_reset SET resettime = '"UI64FMTD"' WHERE mapid = '%d' AND difficulty = '%d'", (uint64)next_reset, mapid, difficulty);
} }
// note: this isn't fast but it's meant to be executed very rarely // note: this isn't fast but it's meant to be executed very rarely

View file

@ -2241,7 +2241,7 @@ void SpellMgr::LoadSpellScriptTarget()
return; return;
} }
barGoLink bar(result->GetRowCount()); barGoLink bar((int)result->GetRowCount());
do do
{ {
@ -2379,7 +2379,7 @@ void SpellMgr::LoadSpellPetAuras()
return; return;
} }
barGoLink bar( result->GetRowCount() ); barGoLink bar( (int)result->GetRowCount() );
do do
{ {
@ -2717,7 +2717,7 @@ void SpellMgr::LoadSpellAreas()
return; return;
} }
barGoLink bar( result->GetRowCount() ); barGoLink bar( (int)result->GetRowCount() );
do do
{ {
@ -3042,7 +3042,7 @@ void SpellMgr::LoadSkillLineAbilityMap()
{ {
mSkillLineAbilityMap.clear(); mSkillLineAbilityMap.clear();
barGoLink bar( sSkillLineAbilityStore.GetNumRows() ); barGoLink bar( (int)sSkillLineAbilityStore.GetNumRows() );
uint32 count = 0; uint32 count = 0;
for (uint32 i = 0; i < sSkillLineAbilityStore.GetNumRows(); ++i) for (uint32 i = 0; i < sSkillLineAbilityStore.GetNumRows(); ++i)
@ -3079,7 +3079,7 @@ void SpellMgr::CheckUsedSpells(char const* table)
return; return;
} }
barGoLink bar( result->GetRowCount() ); barGoLink bar( (int)result->GetRowCount() );
do do
{ {

View file

@ -33,7 +33,7 @@ barGoLink::~barGoLink()
fflush(stdout); fflush(stdout);
} }
barGoLink::barGoLink( uint64 row_count ) barGoLink::barGoLink( int row_count )
{ {
rec_no = 0; rec_no = 0;
rec_pos = 0; rec_pos = 0;

View file

@ -33,7 +33,7 @@ class MANGOS_DLL_SPEC barGoLink
public: public:
void step( void ); void step( void );
barGoLink( uint64 ); barGoLink( int );
~barGoLink(); ~barGoLink();
}; };
#endif #endif

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "9383" #define REVISION_NR "9384"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__