Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/server-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Rust
uses: actions-rs/toolchain@v1
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
profile: minimal
components: clippy, rustfmt
override: true
- name: Enable caching
uses: Swatinem/rust-cache@v2
Expand Down
9 changes: 5 additions & 4 deletions server/src/graphics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,10 +279,11 @@ impl Renderer {
};

if ctx.rng.random_bool(data.probability_of_thunder)
&& let Some(&n) = lightning_set.choose(&mut ctx.rng) {
let lightning = spriten("lightning", n);
self.draw_sprite(ctx, lightning, x + lightning_offset, y);
}
&& let Some(&n) = lightning_set.choose(&mut ctx.rng)
{
let lightning = spriten("lightning", n);
self.draw_sprite(ctx, lightning, x + lightning_offset, y);
}
}

fn draw_fog(&self, ctx: &mut RenderContext, data: &DataPoint, x: i64, y: i64, width: i64) {
Expand Down