mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-28 00:42:19 -07:00
fixes
This commit is contained in:
parent
814303e376
commit
7ffaf24e65
2 changed files with 2 additions and 2 deletions
|
|
@ -25,7 +25,7 @@ static QList<int> createReplayTimeline(const GameReplay *replay)
|
|||
const int numberEventsThisSecond = nextSecondIndex - i;
|
||||
for (int k = 0; k < numberEventsThisSecond; ++k) {
|
||||
int eventMs = replay->event_list(i + k).seconds_elapsed() * 1000;
|
||||
int distributionMs = static_cast<int>(static_cast<qreal>(k) / numberEventsThisSecond) * 1000;
|
||||
int distributionMs = static_cast<int>(static_cast<qreal>(k) / numberEventsThisSecond * 1000);
|
||||
replayTimeline.append(eventMs + distributionMs);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ signals:
|
|||
private:
|
||||
QList<int> histogram;
|
||||
int maxBinValue = 1;
|
||||
int maxTime = 0;
|
||||
int maxTime = 1;
|
||||
|
||||
int currentTime = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue