Skip to content

Commit

Permalink
update version and some mini fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sn-blg committed Nov 9, 2021
1 parent e734e74 commit e742b51
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "img2h3m"
version = "0.2.0"
version = "0.3.0"
authors = ["sn-blg"]
edition = "2021"
description = "CLI utility for converting image to homm3 HotA minimap"
Expand Down
8 changes: 4 additions & 4 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@ pub fn get_config() -> Config {
Arg::with_name("image")
.short("i")
.long("img")
.help("Sets the path of input image file")
.help("Path of input image file")
.takes_value(true)
.required(true),
)
.arg(
Arg::with_name("map")
.short("m")
.long("map")
.help("Sets the path of existing h3m file for update it's mini map")
.help("Path of existing h3m file for update it's minimap")
.takes_value(true)
.required(true),
)
.arg(
Arg::with_name("underground")
.short("u")
.help("Update underground map if sets"),
.help("Update underground map"),
)
.arg(
Arg::with_name("fix")
.short("f")
.help("fix errors in result map"),
.help("Fix errors in result map"),
)
.get_matches();

Expand Down
4 changes: 2 additions & 2 deletions src/map_image/surface_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ enum SurfaceRelation {
Any, // any neighborhood, including None
}

pub const PROBLEM_PATTERN_SIZE: usize = 9;
const PROBLEM_PATTERN_SIZE: usize = 9;
const TEST_SURFACE_INDEX: usize = 4;

type ProblemPattern = [SurfaceRelation; PROBLEM_PATTERN_SIZE];
pub type Neighborhood = [Option<Surface>; PROBLEM_PATTERN_SIZE];
type Neighborhood = [Option<Surface>; PROBLEM_PATTERN_SIZE];

fn is_surface_relation_matched(
test_surface: Surface,
Expand Down

0 comments on commit e742b51

Please sign in to comment.