mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2024-12-12 15:45:15 +00:00
fix building on windoze
This commit is contained in:
parent
a8a9c6316d
commit
2ccfb06943
|
@ -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.
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue