Skip to content

Commit

Permalink
remove UMAPDEF (#2093)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfomin authored Dec 17, 2024
1 parent f07688a commit 3f41e8f
Show file tree
Hide file tree
Showing 15 changed files with 35 additions and 457 deletions.
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ jobs:
--inconclusive \
--inline-suppr \
--std=c99 \
--suppress="memleak:${{ github.workspace }}/src/u_scanner.c" \
--project="${{ github.workspace }}/build/compile_commands.json" \
-i"${{ github.workspace }}/third-party" \
-D__GNUC__
Expand Down
14 changes: 4 additions & 10 deletions base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -199,18 +199,18 @@ set(BASE_SOURCES
all-all/sprites/pls2e0.png
all-all/sprites/tnt1a0.png

betalevl.wad/umapdef.lmp
betalevl.wad/umapinfo.lmp

chex.wad/brghtmps.lmp
chex.wad/dehacked.lmp
chex.wad/umapdef.lmp
chex.wad/umapinfo.lmp

chex2.wad/brghtmps.lmp

doom-all/brghtmps.lmp

e1m4b.wad/umapdef.lmp
e1m8b.wad/umapdef.lmp
e1m4b.wad/umapinfo.lmp
e1m8b.wad/umapinfo.lmp

extras.wad/sbardef.lmp

Expand All @@ -219,16 +219,10 @@ set(BASE_SOURCES

id1.wad/sbardef.lmp

masterlevels.wad/umapdef.lmp

nerve.wad/umapdef.lmp

rekkr.wad/dehacked.lmp
rekkrsa.wad/dehacked.lmp
rekkrsl.wad/dehacked.lmp

sigil_v1_21.wad/umapdef.lmp

tnt.wad/brghtmps.lmp)

add_custom_command(OUTPUT "${BASE_PK3_PATH}"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
162 changes: 0 additions & 162 deletions base/masterlevels.wad/umapdef.lmp

This file was deleted.

111 changes: 0 additions & 111 deletions base/nerve.wad/umapdef.lmp

This file was deleted.

4 changes: 0 additions & 4 deletions base/sigil_v1_21.wad/umapdef.lmp

This file was deleted.

2 changes: 0 additions & 2 deletions src/d_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2365,8 +2365,6 @@ void D_DoomMain(void)
I_Error("\nThis is not the registered version.");
}

W_ProcessInWads("UMAPDEF", U_ParseMapDefInfo, PROCESS_PWAD);

//!
// @category mod
//
Expand Down
11 changes: 2 additions & 9 deletions src/g_game.c
Original file line number Diff line number Diff line change
Expand Up @@ -3851,23 +3851,16 @@ void G_SetFastParms(int fast_pending)

mapentry_t *G_LookupMapinfo(int episode, int map)
{
char lumpname[9];
strcpy(lumpname, MapName(episode, map));
char lumpname[9] = {0};
M_StringCopy(lumpname, MapName(episode, map), sizeof(lumpname));

mapentry_t *entry;

array_foreach(entry, umapinfo)
{
if (!strcasecmp(lumpname, entry->mapname))
return entry;
}

array_foreach(entry, umapdef)
{
if (!strcasecmp(lumpname, entry->mapname))
return entry;
}

return NULL;
}

Expand Down
5 changes: 5 additions & 0 deletions src/m_scanner.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
// OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
// SUCH DAMAGE.

#ifndef M_SCANNER_H
#define M_SCANNER_H

#include "doomtype.h"

typedef struct scanner_s scanner_t;
Expand Down Expand Up @@ -69,3 +72,5 @@ void SC_Rewind(scanner_t *s); // Only can rewind one step.
void SC_GetNextTokenLumpName(scanner_t *s);

void SC_Error(scanner_t *s, const char *msg, ...) PRINTF_ATTR(2, 3);

#endif
2 changes: 1 addition & 1 deletion src/st_widgets.c
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ void ST_ResetTitle(void)
announce_string[0] = '\0';
if (hud_map_announce && leveltime == 0)
{
if (gamemapinfo && U_CheckField(gamemapinfo->author))
if (gamemapinfo && gamemapinfo->author)
{
M_snprintf(announce_string, sizeof(announce_string), "%s by %s",
string, gamemapinfo->author);
Expand Down
Loading

0 comments on commit 3f41e8f

Please sign in to comment.