mirror of
https://github.com/Xevion/Pac-Man.git
synced 2025-12-10 08:07:56 -06:00
fix(emscripten): string pointer casting, fixup AssetError handling
This commit is contained in:
@@ -21,10 +21,8 @@ impl DirectionalAnimatedTexture {
|
||||
}
|
||||
|
||||
pub fn tick(&mut self, dt: f32) {
|
||||
for texture in self.textures.iter_mut() {
|
||||
if let Some(texture) = texture {
|
||||
texture.tick(dt);
|
||||
}
|
||||
for texture in self.textures.iter_mut().flatten() {
|
||||
texture.tick(dt);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user