mirror of
https://codeberg.org/fairyglade/ly.git
synced 2026-08-09 07:09:13 +02:00
Remove redundant constant
This commit is contained in:
parent
7e69260511
commit
e6d8bea236
1 changed files with 3 additions and 3 deletions
|
|
@ -97,10 +97,10 @@ pub fn draw(self: Doom) void {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn initBuffer(buffer: []u8, width: usize) void {
|
fn initBuffer(buffer: []u8, width: usize) void {
|
||||||
const length = buffer.len;
|
const slice_start = buffer[0..buffer.len];
|
||||||
const slice_start = buffer[0..length];
|
const slice_end = buffer[buffer.len - width .. buffer.len];
|
||||||
const slice_end = buffer[length - width .. length];
|
|
||||||
|
|
||||||
|
// set cell initial values to 0, set bottom row to be fire sources
|
||||||
@memset(slice_start, 0);
|
@memset(slice_start, 0);
|
||||||
@memset(slice_end, STEPS - 1);
|
@memset(slice_end, STEPS - 1);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue