Skip to content

Commit

Permalink
Support mapinfo useplayerstartz
Browse files Browse the repository at this point in the history
  • Loading branch information
kraflab committed Jul 14, 2023
1 parent c278dc7 commit 46fede4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/mapinfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ You can enable MAPINFO parsing via the `-mapinfo` command line option. There is
| NoCheckSwitchRange | :heavy_check_mark: |
| ResetHealth | :telescope: |
| ResetInventory | :telescope: |
| UsePlayerStartZ | :telescope: |
| UsePlayerStartZ | :heavy_check_mark: |
| RandomPlayerStarts | :telescope: |
| NoPassover | :heavy_check_mark: |
| Passover | :heavy_check_mark: |
3 changes: 3 additions & 0 deletions prboom2/src/p_mobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -2025,6 +2025,9 @@ void P_SpawnPlayer (int n, const mapthing_t* mthing)
else
mobj = P_SpawnMobj(x,y,z, g_mt_player);

if (map_info.flags & MI_USE_PLAYER_START_Z)
mobj->z += mthing->height;

// set color translations for player sprites
if (hexen)
{
Expand Down

0 comments on commit 46fede4

Please sign in to comment.