Skip to content

Commit

Permalink
fix: win95 enemy magic attack sfx should not play when enemy magic sf…
Browse files Browse the repository at this point in the history
…x is negative
  • Loading branch information
palxex committed Jan 27, 2021
1 parent e65dd7e commit 5384e71
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
1 change: 1 addition & 0 deletions fight.c
Original file line number Diff line number Diff line change
Expand Up @@ -2860,6 +2860,7 @@ PAL_BattleShowEnemyMagicAnim(

if (i == (gConfig.fIsWIN95 ? 0 : gpGlobals->g.lprgMagic[iMagicNum].wFireDelay))
{
if(!gConfig.fIsWIN95 || g_Battle.rgEnemy[wEnemyIndex].e.wMagicSound > 0)
AUDIO_PlaySound(gpGlobals->g.lprgMagic[iMagicNum].wSound);
}

Expand Down
35 changes: 34 additions & 1 deletion macos/Pal.xcodeproj/xcshareddata/xcschemes/SDLPal.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
enableASanStackUseAfterReturn = "YES"
launchStyle = "0"
useCustomWorkingDirectory = "YES"
customWorkingDirectory = "$PROJECT_DIR/../resources/dos"
customWorkingDirectory = "/Users/palxex/gst/sdlpal/resource/dos"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
Expand All @@ -77,6 +78,38 @@
ReferencedContainer = "container:Pal.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
<AdditionalOption
key = "MallocStackLogging"
value = ""
isEnabled = "YES">
</AdditionalOption>
<AdditionalOption
key = "DYLD_INSERT_LIBRARIES"
value = "/usr/lib/libgmalloc.dylib"
isEnabled = "YES">
</AdditionalOption>
<AdditionalOption
key = "PrefersMallocStackLoggingLite"
value = ""
isEnabled = "YES">
</AdditionalOption>
<AdditionalOption
key = "NSZombieEnabled"
value = "YES"
isEnabled = "YES">
</AdditionalOption>
<AdditionalOption
key = "MallocGuardEdges"
value = ""
isEnabled = "YES">
</AdditionalOption>
<AdditionalOption
key = "MallocScribble"
value = ""
isEnabled = "YES">
</AdditionalOption>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down

0 comments on commit 5384e71

Please sign in to comment.