fix building on windoze

This commit is contained in:
Alula 2021-02-10 13:12:38 +01:00
parent a8a9c6316d
commit 2ccfb06943
No known key found for this signature in database
GPG Key ID: 3E00485503A1D8BA
2 changed files with 1 additions and 2 deletions

View File

@ -138,7 +138,7 @@ impl Game {
let state_ref = unsafe { &mut *self.state.get() };
if state_ref.timing_mode != TimingMode::FrameSynchronized {
let elapsed = self.start_time.elapsed().as_nanos();
let mut elapsed = self.start_time.elapsed().as_nanos();
#[cfg(target_os = "windows")]
{
// Even with the non-monotonic Instant mitigation at the start of the event loop, there's still a chance of it not working.

View File

@ -24,7 +24,6 @@ static REL_URL: &str = "https://github.com/doukutsu-rs/game-data/releases";
impl Scene for NoDataScene {
fn tick(&mut self, state: &mut SharedGameState, ctx: &mut Context) -> GameResult {
#[cfg(target_os = "android")]
{
if !self.flag {