mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[9384] Resore use uint64 instead time_t in query, some other fixes.
This commit is contained in:
parent
5beb853bc4
commit
f4c38044c4
6 changed files with 10 additions and 10 deletions
|
|
@ -325,7 +325,7 @@ void LoadDBCStores(const std::string& dataPath)
|
|||
|
||||
const uint32 DBCFilesCount = 84;
|
||||
|
||||
barGoLink bar( DBCFilesCount );
|
||||
barGoLink bar( (int)DBCFilesCount );
|
||||
|
||||
StoreProblemList bad_dbc_files;
|
||||
|
||||
|
|
|
|||
|
|
@ -639,7 +639,7 @@ void InstanceSaveManager::_ResetOrWarnAll(uint32 mapid, Difficulty difficulty, b
|
|||
uint32 period = mapDiff->resetTime * DAY;
|
||||
time_t next_reset = ((now + timeLeft + MINUTE) / DAY * DAY) + period + diff;
|
||||
// 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
|
||||
|
|
|
|||
|
|
@ -2241,7 +2241,7 @@ void SpellMgr::LoadSpellScriptTarget()
|
|||
return;
|
||||
}
|
||||
|
||||
barGoLink bar(result->GetRowCount());
|
||||
barGoLink bar((int)result->GetRowCount());
|
||||
|
||||
do
|
||||
{
|
||||
|
|
@ -2379,7 +2379,7 @@ void SpellMgr::LoadSpellPetAuras()
|
|||
return;
|
||||
}
|
||||
|
||||
barGoLink bar( result->GetRowCount() );
|
||||
barGoLink bar( (int)result->GetRowCount() );
|
||||
|
||||
do
|
||||
{
|
||||
|
|
@ -2717,7 +2717,7 @@ void SpellMgr::LoadSpellAreas()
|
|||
return;
|
||||
}
|
||||
|
||||
barGoLink bar( result->GetRowCount() );
|
||||
barGoLink bar( (int)result->GetRowCount() );
|
||||
|
||||
do
|
||||
{
|
||||
|
|
@ -3042,7 +3042,7 @@ void SpellMgr::LoadSkillLineAbilityMap()
|
|||
{
|
||||
mSkillLineAbilityMap.clear();
|
||||
|
||||
barGoLink bar( sSkillLineAbilityStore.GetNumRows() );
|
||||
barGoLink bar( (int)sSkillLineAbilityStore.GetNumRows() );
|
||||
uint32 count = 0;
|
||||
|
||||
for (uint32 i = 0; i < sSkillLineAbilityStore.GetNumRows(); ++i)
|
||||
|
|
@ -3079,7 +3079,7 @@ void SpellMgr::CheckUsedSpells(char const* table)
|
|||
return;
|
||||
}
|
||||
|
||||
barGoLink bar( result->GetRowCount() );
|
||||
barGoLink bar( (int)result->GetRowCount() );
|
||||
|
||||
do
|
||||
{
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ barGoLink::~barGoLink()
|
|||
fflush(stdout);
|
||||
}
|
||||
|
||||
barGoLink::barGoLink( uint64 row_count )
|
||||
barGoLink::barGoLink( int row_count )
|
||||
{
|
||||
rec_no = 0;
|
||||
rec_pos = 0;
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class MANGOS_DLL_SPEC barGoLink
|
|||
public:
|
||||
|
||||
void step( void );
|
||||
barGoLink( uint64 );
|
||||
barGoLink( int );
|
||||
~barGoLink();
|
||||
};
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "9383"
|
||||
#define REVISION_NR "9384"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue