From e10a2be3238cf2a96f82623865b10935a375b59a Mon Sep 17 00:00:00 2001 From: Filipe Rodrigues Date: Fri, 13 Oct 2023 07:19:58 +0100 Subject: [PATCH] Fixed terminology on map tiles. --- tools/ddw3-mkrlen/src/args.rs | 2 +- tools/ddw3-mkrlen/src/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/ddw3-mkrlen/src/args.rs b/tools/ddw3-mkrlen/src/args.rs index d77302a9f..fd100a8a2 100644 --- a/tools/ddw3-mkrlen/src/args.rs +++ b/tools/ddw3-mkrlen/src/args.rs @@ -17,7 +17,7 @@ pub struct Args { /// Run in compatibility mode for file. /// - /// Expects a string of format `.`, + /// Expects a string of format `.`, /// for example, `S232.12` #[clap(long = "compatibility")] pub compatibility: Option, diff --git a/tools/ddw3-mkrlen/src/main.rs b/tools/ddw3-mkrlen/src/main.rs index a3eabf783..894e2c586 100644 --- a/tools/ddw3-mkrlen/src/main.rs +++ b/tools/ddw3-mkrlen/src/main.rs @@ -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