Skip to content

Commit

Permalink
Fix 32-bit build
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed Jul 18, 2016
1 parent 1f92927 commit fc35deb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/game/Spells.cpp
Expand Up @@ -550,7 +550,7 @@ void ARX_SPELLS_ManageMagic() {

ArxInstant now = arxtime.now_ul();

const unsigned long interval = 1000 / 60;
const ArxInstant interval = 1000 / 60;

if(ARX_FLARES_broken) {
g_LastFlarePosition = pos;
Expand Down
2 changes: 1 addition & 1 deletion src/game/magic/spells/SpellsLvl06.cpp
Expand Up @@ -274,7 +274,7 @@ void CreateFieldSpell::Launch()
{
ArxInstant start = arxtime.now_ul();
if(m_flags & SPELLCAST_FLAG_RESTORE) {
start -= std::min(start, 4000l);
start -= std::min(start, ArxInstant(4000l));
}
m_timcreation = start;

Expand Down
3 changes: 2 additions & 1 deletion src/script/Script.cpp
Expand Up @@ -1847,8 +1847,9 @@ void ARX_SCRIPT_Timer_Check() {
if((st->flags & 1) && !(st->io->gameFlags & GFLAG_ISINTREATZONE)) {
long increment = (now - st->tim) / st->msecs;
st->tim += st->msecs * increment;
// TODO print full 64-bit time
arx_assert(st->tim <= now && st->tim + st->msecs > now,
"start=%lu wait=%ld now=%lu", st->tim, st->msecs, now);
"start=%lu wait=%ld now=%lu", (long)st->tim, (long)st->msecs, (long)now);
continue;
}

Expand Down

0 comments on commit fc35deb

Please sign in to comment.