console/cmd/play-level: fix duplicate error message

Issuing `/level non-existing-string` (not a number) resulted in two
messages: one about invalid level, and the other about invalid command
invocation.
This commit is contained in:
Marcin Kurczewski 2024-11-05 22:04:01 +01:00
parent 4641712037
commit 2819ea18ea
3 changed files with 3 additions and 1 deletions

View file

@ -47,6 +47,7 @@
- fixed the controls menu extending to the bottom of the screen with certain text scaling values (#1783, regression from 2.12)
- fixed game stuck at remapping controller key if no controllers connected (#1788)
- fixed being able to shoot the scion multiple times if save/load is used while it blows up (#1819)
- fixed certain erroneous `/play` invocations resulting in duplicated error messages
- improved enemy item drops by supporting the TR2+ approach of having drops defined in level data (#1713)
- improved Italian localization for the Config Tool
- improved the injection approach for Lara's responsive jumping (#1823)

View file

@ -65,6 +65,7 @@
- fixed sound settings resuming the music (#1707)
- fixed the inventory ring spinout animation sometimes running too fast (#1704, regression from 0.3)
- fixed new saves not displaying the save count in the passport (#1591)
- fixed certain erroneous `/play` invocations resulting in duplicated error messages
## [0.5](https://github.com/LostArtefacts/TRX/compare/afaf12a...tr2-0.5) - 2024-10-08
- added `/sfx` command

View file

@ -46,7 +46,7 @@ static COMMAND_RESULT M_Entrypoint(const COMMAND_CONTEXT *const ctx)
if (matches->count == 0) {
Console_Log(GS(OSD_INVALID_LEVEL));
result = CR_BAD_INVOCATION;
result = CR_FAILURE;
goto cleanup;
} else if (matches->count >= 1) {
const STRING_FUZZY_MATCH *const match = Vector_Get(matches, 0);