From d851040ad61d256a054376037430b4b1d0bf5327 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 12 Dec 2010 07:59:38 +0000 Subject: [PATCH] - fixed GCC compilation. SVN r3028 (trunk) --- src/CMakeLists.txt | 3 ++- src/p_switch.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7e5ecf22b7..992e8bb146 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -707,7 +707,6 @@ add_executable( zdoom WIN32 p_xlat.cpp parsecontext.cpp po_man.cpp - r_anim.cpp r_bsp.cpp r_data.cpp r_draw.cpp @@ -840,6 +839,8 @@ add_executable( zdoom WIN32 sound/music_timidity_mididevice.cpp sound/music_win_mididevice.cpp sound/music_pseudo_mididevice.cpp + textures/animations.cpp + textures/anim_switches.cpp textures/automaptexture.cpp textures/bitmap.cpp textures/buildtexture.cpp diff --git a/src/p_switch.cpp b/src/p_switch.cpp index 02adc913c4..622fd63946 100644 --- a/src/p_switch.cpp +++ b/src/p_switch.cpp @@ -346,7 +346,7 @@ void DActiveButton::Tick () def = TexMan.GetSwitch(def->PairIndex); m_Frame = 65535; S_Sound (m_X, m_Y, 0, CHAN_VOICE|CHAN_LISTENERZ, - def->Sound != 0 ? def->Sound : FSoundID("switches/normbutn"), + def->Sound != 0 ? FSoundID(def->Sound) : FSoundID("switches/normbutn"), 1, ATTN_STATIC); bFlippable = false; }