Skip to content

Commit

Permalink
Update readme and add a diagnostic message for users.
Browse files Browse the repository at this point in the history
  • Loading branch information
JadingTsunami committed Nov 3, 2023
1 parent f5cfec4 commit c1e3ea1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ Install [PrBoom-Plus](https://github.com/coelckers/prboom-plus) and place the bi
- `complevel N` (change compatibility level to N where N is 0-17)
- `switchweapon N` (switch weapon to N where N 0-8 or weapon name)
- `am_warpto` (warp/teleport to automap crosshair position)
- `am_summon` (summon enemy/thing/etc. to automap crosshair position)
- `am_summonfriend` (summon friendly enemy/thing/etc. to automap crosshair position)
- `am_summon <class>` (summon enemy/thing/etc. to automap crosshair position)
- `am_summonfriend <class>` (summon friendly enemy/thing/etc. to automap crosshair position)

# Bindable Special Key Names

Expand Down
4 changes: 3 additions & 1 deletion prboom2/src/c_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -774,8 +774,10 @@ static void C_internal_summon(char* cmd, dboolean friendly)

cmd = C_StripSpaces(cmd);

if (!cmd)
if (!cmd) {
doom_printf("Specify an actor type to summon.");
return;
}

for (i=0; ActorNames[i]; i++)
if (strcasecmp(cmd,ActorNames[i]) == 0)
Expand Down

0 comments on commit c1e3ea1

Please sign in to comment.