mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 07:12:02 +00:00
- Work around an i386 specific optimizer bug in Apple's GCC 4.2 (GCC 4.0 has worse bugs).
- Fixed: zdoom-info.plist used some non-existant/wrong variables.
This commit is contained in:
parent
eacb9aa105
commit
0123279a1f
2 changed files with 9 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
<key>CFBundleDevelopmentRegion</key>
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
<string>English</string>
|
<string>English</string>
|
||||||
<key>CFBundleExecutable</key>
|
<key>CFBundleExecutable</key>
|
||||||
<string>${EXECUTABLE_NAME}</string>
|
<string>${MACOSX_BUNDLE_EXECUTABLE_NAME}</string>
|
||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>zdoom.icns</string>
|
<string>zdoom.icns</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
<key>LSApplicationCategoryType</key>
|
<key>LSApplicationCategoryType</key>
|
||||||
<string>public.app-category.action-games</string>
|
<string>public.app-category.action-games</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
|
<string>10.4</string>
|
||||||
<key>CFBundleDocumentTypes</key>
|
<key>CFBundleDocumentTypes</key>
|
||||||
<array>
|
<array>
|
||||||
<dict>
|
<dict>
|
||||||
|
|
|
@ -516,7 +516,14 @@ void AHexenArmor::AbsorbDamage (int damage, FName damageType, int &newdamage)
|
||||||
// with the dragon skin bracers.
|
// with the dragon skin bracers.
|
||||||
if (damage < 10000)
|
if (damage < 10000)
|
||||||
{
|
{
|
||||||
|
#if __APPLE__ && __GNUC__ == 4 && __GNUC_MINOR__ == 2 && __GNUC_PATCHLEVEL__ == 1
|
||||||
|
// -O1 optimizer bug work around. Only needed for
|
||||||
|
// GCC 4.2.1 on OS X for 10.4/10.5 tools compatibility.
|
||||||
|
volatile fixed_t tmp = 300;
|
||||||
|
Slots[i] -= Scale (damage, SlotsIncrement[i], tmp);
|
||||||
|
#else
|
||||||
Slots[i] -= Scale (damage, SlotsIncrement[i], 300);
|
Slots[i] -= Scale (damage, SlotsIncrement[i], 300);
|
||||||
|
#endif
|
||||||
if (Slots[i] < 2*FRACUNIT)
|
if (Slots[i] < 2*FRACUNIT)
|
||||||
{
|
{
|
||||||
Slots[i] = 0;
|
Slots[i] = 0;
|
||||||
|
|
Loading…
Reference in a new issue