pass deltatime in seconds during ticks.

previously it was passed in milliseconds.
This commit is contained in:
trans_soup 2023-10-25 20:08:29 +02:00
parent b367c4b3a3
commit af3ec008c9
1 changed files with 1 additions and 1 deletions

View File

@ -10,6 +10,6 @@ export function tick () {
last_tick += deltatime;
for (const callback of tickers) {
callback(deltatime);
callback(deltatime / 1000);
}
}