Merge branch 'next' of https://codeberg.org/NepDisk/blankart into next
This commit is contained in:
commit
4e47388191
2 changed files with 9 additions and 3 deletions
|
|
@ -183,8 +183,10 @@ if("${BLANKART_EXE_NAME}" STREQUAL "")
|
|||
list(APPEND EXE_NAME_PARTS ${SRB2_GIT_BRANCH})
|
||||
endif()
|
||||
|
||||
string(TOLOWER "${CMAKE_BUILD_TYPE}" BLDTYPE_READOUT)
|
||||
list(APPEND EXE_NAME_PARTS ${BLDTYPE_READOUT})
|
||||
if(NOT "${NOAPPENDBUILD}")
|
||||
string(TOLOWER "${CMAKE_BUILD_TYPE}" BLDTYPE_READOUT)
|
||||
list(APPEND EXE_NAME_PARTS ${BLDTYPE_READOUT})
|
||||
endif()
|
||||
|
||||
if(SRB2_CONFIG_COMPILEAPPIMAGE AND "${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
|
||||
list(APPEND EXE_NAME_PARTS "appimagebuild")
|
||||
|
|
|
|||
|
|
@ -1340,7 +1340,11 @@ UINT16 W_CheckNumForNamePwad(const char *name, UINT16 wad, UINT16 startlump)
|
|||
if (!TestValidLump(wad, 0))
|
||||
return INT16_MAX;
|
||||
|
||||
namelen = strlen(name);
|
||||
// Name = SHORTNAME. Truncate/move the string to something that has a max of 8 characters.
|
||||
// Will this cause lumpname/lumphash collisions? Of course it will! But we need it for
|
||||
// SRB2Kart compatibility, so...
|
||||
namelen = min(strlen(name), 8);
|
||||
|
||||
hash = W_HashLumpName(name, namelen); // Not a mistake, legacy system for short lumpnames
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in a new issue