Fixed terminology on map tiles.
This commit is contained in:
parent
51fb7e927b
commit
e10a2be323
@ -17,7 +17,7 @@ pub struct Args {
|
||||
|
||||
/// Run in compatibility mode for file.
|
||||
///
|
||||
/// Expects a string of format `<map>.<map-part>`,
|
||||
/// Expects a string of format `<map>.<tile>`,
|
||||
/// for example, `S232.12`
|
||||
#[clap(long = "compatibility")]
|
||||
pub compatibility: Option<String>,
|
||||
|
||||
@ -47,8 +47,8 @@ fn main() -> Result<(), anyhow::Error> {
|
||||
|
||||
try {
|
||||
let map = args.input.parent()?.file_name()?.to_str()?.strip_suffix("PACK")?;
|
||||
let map_part = args.input.file_prefix()?.to_str()?;
|
||||
let compatibility = format!("{map}.{map_part}");
|
||||
let tile = args.input.file_prefix()?.to_str()?;
|
||||
let compatibility = format!("{map}.{tile}");
|
||||
|
||||
tracing::info!(?compatibility, "Found auto-compatibility");
|
||||
compatibility
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user