Skip to content

Commit

Permalink
Merge pull request #24 from striezel-stash/fix-typos
Browse files Browse the repository at this point in the history
fix: Fix some typos
  • Loading branch information
Zac8668 authored Dec 31, 2023
2 parents c03ac39 + 7d20266 commit e2ca361
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/consts.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Chunk Lenght consts
// Chunk lenght MUST be divisible by 4
// Chunk Length consts
// Chunk length MUST be divisible by 4
pub const CHUNK_LENGHT: usize = 64;
pub const HALF_CHUNK_LENGHT: usize = CHUNK_LENGHT / 2;

Expand Down
6 changes: 3 additions & 3 deletions src/manager_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub fn swap(chunks: &mut UpdateChunksType, pos1: IVec2, pos2: IVec2, dt: u8) {

/// Transforms a global manager pos to a chunk pos
pub fn global_to_chunk(mut pos: IVec2) -> ChunkPos {
//This makes sure we dont have double 0 chunks
// This makes sure we don't have double 0 chunks.
if pos.x < 0 {
pos.x -= CHUNK_LENGHT as i32;
}
Expand Down Expand Up @@ -252,7 +252,7 @@ pub fn rand_range(vec: Range<usize>) -> Vec<usize> {

// Transform pos to chunk coords
pub fn transform_to_chunk(mut pos: Vec2) -> ChunkPos {
//This makes sure we dont have double 0 chunks
// This makes sure we don't have double 0 chunks.
if pos.x < 0. {
pos.x -= (CHUNK_LENGHT * ATOM_SIZE) as f32;
}
Expand Down Expand Up @@ -538,7 +538,7 @@ pub enum ChunkReference<'a> {
}

/// A deferred update message.
/// Indicates that an image or dirty rect should udpate.
/// Indicates that an image or dirty rect should update.
#[derive(Debug)]
pub struct DeferredDirtyRectUpdate {
pub chunk_pos: ChunkPos,
Expand Down

0 comments on commit e2ca361

Please sign in to comment.