Skip to content

Commit

Permalink
bump bevy_spectator to 0.4 and fix example warning
Browse files Browse the repository at this point in the history
  • Loading branch information
sphw committed Nov 13, 2023
1 parent d811ce1 commit 1cc78da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ bevy_atmosphere_macros = { path = "macros", version = "0.2.1" }
cfg-if = "1.0"

[dev-dependencies]
bevy_spectator = "0.3"
bevy_spectator = "0.4"
bevy = { version = "0.12", features = ["bevy_core_pipeline", "x11"] }

[features]
Expand Down
2 changes: 1 addition & 1 deletion examples/splitscreen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ fn set_camera_viewports(
// We need to dynamically resize the camera's viewports whenever the window size changes
// so then each camera always takes up half the screen.
// A resize_event is sent when the window is first created, allowing us to reuse this system for initial setup.
for resize_event in resize_events.iter() {
for resize_event in resize_events.read() {
let window = windows.get(resize_event.window).unwrap();
let mut left_camera = left_camera.single_mut();
left_camera.viewport = Some(Viewport {
Expand Down

0 comments on commit 1cc78da

Please sign in to comment.