mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
Merge branch 'master' of https://github.com/coelckers/gzdoom
This commit is contained in:
commit
788b9f6d54
5 changed files with 25 additions and 9 deletions
|
@ -12,7 +12,7 @@ git:
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- os: osx
|
- os: osx
|
||||||
osx_image: xcode8.2
|
osx_image: xcode8.3
|
||||||
env:
|
env:
|
||||||
- CMAKE_OPTIONS="-DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_DEPLOYMENT_TARGET=10.7"
|
- CMAKE_OPTIONS="-DCMAKE_BUILD_TYPE=Release -DCMAKE_OSX_DEPLOYMENT_TARGET=10.7"
|
||||||
|
|
||||||
|
|
|
@ -1253,7 +1253,7 @@ if( MSVC )
|
||||||
create_default_target_launcher( zdoom WORKING_DIRECTORY ${ZDOOM_OUTPUT_DIR} )
|
create_default_target_launcher( zdoom WORKING_DIRECTORY ${ZDOOM_OUTPUT_DIR} )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if( NOT WIN32 )
|
if( NOT WIN32 AND NOT APPLE )
|
||||||
FILE( WRITE ${CMAKE_CURRENT_BINARY_DIR}/link-make "if [ ! -e ${ZDOOM_OUTPUT_DIR}/${ZDOOM_EXE_NAME} ]; then ln -sf ${CMAKE_CURRENT_BINARY_DIR}/${ZDOOM_EXE_NAME} ${ZDOOM_OUTPUT_DIR}/${ZDOOM_EXE_NAME}; fi" )
|
FILE( WRITE ${CMAKE_CURRENT_BINARY_DIR}/link-make "if [ ! -e ${ZDOOM_OUTPUT_DIR}/${ZDOOM_EXE_NAME} ]; then ln -sf ${CMAKE_CURRENT_BINARY_DIR}/${ZDOOM_EXE_NAME} ${ZDOOM_OUTPUT_DIR}/${ZDOOM_EXE_NAME}; fi" )
|
||||||
add_custom_command( TARGET zdoom POST_BUILD
|
add_custom_command( TARGET zdoom POST_BUILD
|
||||||
COMMAND chmod +x ${CMAKE_CURRENT_BINARY_DIR}/link-make
|
COMMAND chmod +x ${CMAKE_CURRENT_BINARY_DIR}/link-make
|
||||||
|
|
|
@ -1026,11 +1026,20 @@ void P_CreateLinkedPortals()
|
||||||
for (unsigned i = 0; i < linePortals.Size(); i++)
|
for (unsigned i = 0; i < linePortals.Size(); i++)
|
||||||
{
|
{
|
||||||
if (linePortals[i].mType == PORTT_LINKED)
|
if (linePortals[i].mType == PORTT_LINKED)
|
||||||
|
{
|
||||||
|
if (linePortals[i].mDestination == nullptr)
|
||||||
|
{
|
||||||
|
Printf("Linked portal on line %d is unconnected and will be disabled\n", linePortals[i].mOrigin->Index());
|
||||||
|
linePortals[i].mOrigin->portalindex = UINT_MAX;
|
||||||
|
linePortals[i].mType = PORTT_VISUAL;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
if (CollectSectors(id, linePortals[i].mOrigin->frontsector)) id++;
|
if (CollectSectors(id, linePortals[i].mOrigin->frontsector)) id++;
|
||||||
if (CollectSectors(id, linePortals[i].mDestination->frontsector)) id++;
|
if (CollectSectors(id, linePortals[i].mDestination->frontsector)) id++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Displacements.Create(id);
|
Displacements.Create(id);
|
||||||
// Check for leftover sectors that connect to a portal
|
// Check for leftover sectors that connect to a portal
|
||||||
|
|
|
@ -526,6 +526,8 @@ int FluidSynthMIDIDevice::LoadPatchSets(const char *patches)
|
||||||
{
|
{
|
||||||
path = NicePath(tok);
|
path = NicePath(tok);
|
||||||
}
|
}
|
||||||
|
if (FileExists(path))
|
||||||
|
{
|
||||||
if (FLUID_FAILED != fluid_synth_sfload(FluidSynth, path, count == 0))
|
if (FLUID_FAILED != fluid_synth_sfload(FluidSynth, path, count == 0))
|
||||||
{
|
{
|
||||||
DPrintf(DMSG_NOTIFY, "Loaded patch set %s.\n", tok);
|
DPrintf(DMSG_NOTIFY, "Loaded patch set %s.\n", tok);
|
||||||
|
@ -535,6 +537,11 @@ int FluidSynthMIDIDevice::LoadPatchSets(const char *patches)
|
||||||
{
|
{
|
||||||
DPrintf(DMSG_ERROR, "Failed to load patch set %s.\n", tok);
|
DPrintf(DMSG_ERROR, "Failed to load patch set %s.\n", tok);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DPrintf(DMSG_ERROR, "Could not find patch set %s.\n", tok);
|
||||||
|
}
|
||||||
tok = strtok(NULL, delim);
|
tok = strtok(NULL, delim);
|
||||||
}
|
}
|
||||||
free(wpatches);
|
free(wpatches);
|
||||||
|
|
|
@ -51,7 +51,7 @@ int main(int argc, char **argv)
|
||||||
// on a tag, it returns that tag. Otherwise it returns <most recent tag>-<number of
|
// on a tag, it returns that tag. Otherwise it returns <most recent tag>-<number of
|
||||||
// commits since the tag>-<short hash>.
|
// commits since the tag>-<short hash>.
|
||||||
// Use git log to get the time of the latest commit in ISO 8601 format and its full hash.
|
// Use git log to get the time of the latest commit in ISO 8601 format and its full hash.
|
||||||
stream = popen("git describe --tags && git log -1 --format=%ai*%H", "r");
|
stream = popen("git describe --tags --dirty=-m && git log -1 --format=%ai*%H", "r");
|
||||||
|
|
||||||
if (NULL != stream)
|
if (NULL != stream)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue