mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-20 07:58:44 +00:00
Fix choppy sky animation
--HG-- branch : develop
This commit is contained in:
parent
7cb61f8796
commit
f411d2b230
2 changed files with 4 additions and 1 deletions
|
@ -371,6 +371,9 @@ void displayDebug()
|
||||||
// Current GameCycle
|
// Current GameCycle
|
||||||
TextContext->printfAt(1.f, line, "Ms per Cycle : %d", NetMngr.getMsPerTick());
|
TextContext->printfAt(1.f, line, "Ms per Cycle : %d", NetMngr.getMsPerTick());
|
||||||
line += lineStep;
|
line += lineStep;
|
||||||
|
// Smoothed Client Date
|
||||||
|
TextContext->printfAt(1.f, line, "Smoothed Client Date : %u %f", SmoothedClientDate.Day, SmoothedClientDate.Hour);
|
||||||
|
line += lineStep;
|
||||||
// Packet Loss
|
// Packet Loss
|
||||||
TextContext->printfAt(1.f, line, "Packet Loss : %.1f %%", NetMngr.getMeanPacketLoss()*100.0f);
|
TextContext->printfAt(1.f, line, "Packet Loss : %.1f %%", NetMngr.getMeanPacketLoss()*100.0f);
|
||||||
line += lineStep;
|
line += lineStep;
|
||||||
|
|
|
@ -235,7 +235,7 @@ uint CSky::setup(const CClientDate &date, const CClientDate &animationDate, floa
|
||||||
// animate objects
|
// animate objects
|
||||||
if (_PlayListManager)
|
if (_PlayListManager)
|
||||||
{
|
{
|
||||||
double globalDate = ((double) _NumHourInDay * date.Day + (double) date.Hour) / _NumHourInDay;
|
double globalDate = (double)date.Hour / (double)_NumHourInDay;
|
||||||
//nlinfo("global date = %f", (float) globalDate);
|
//nlinfo("global date = %f", (float) globalDate);
|
||||||
_PlayListManager->animate(_AnimLengthInSeconds * globalDate);
|
_PlayListManager->animate(_AnimLengthInSeconds * globalDate);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue