diff options
author | Johannes Schickel | 2009-11-26 00:42:24 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-11-26 00:42:24 +0000 |
commit | 117bcfde95058bbc85f7f720a8e1cad40ddc7ca7 (patch) | |
tree | 6f7070ce4930c13bf4533a9514b2bddbcd543780 | |
parent | 8783b0f2f7dbfb44c977812244a4ab4cde47a796 (diff) | |
download | scummvm-rg350-117bcfde95058bbc85f7f720a8e1cad40ddc7ca7.tar.gz scummvm-rg350-117bcfde95058bbc85f7f720a8e1cad40ddc7ca7.tar.bz2 scummvm-rg350-117bcfde95058bbc85f7f720a8e1cad40ddc7ca7.zip |
Remove dependancy on STL.
svn-id: r46144
-rw-r--r-- | engines/scumm/player_sid.cpp | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/engines/scumm/player_sid.cpp b/engines/scumm/player_sid.cpp index 2a0a399198..67d5fba7fe 100644 --- a/engines/scumm/player_sid.cpp +++ b/engines/scumm/player_sid.cpp @@ -23,7 +23,6 @@ * */ -#include <algorithm> #include "engines/engine.h" #include "scumm/player_sid.h" #include "scumm/scumm.h" @@ -755,22 +754,22 @@ void Player_SID::stopChannel(int channel) { // channel: 0..6, swapIndex: 0..2 void Player_SID::swapVars(int channel, int swapIndex) { // $51a5 if (channel < 3) { - std::swap(attackReg[channel], swapAttack[swapIndex]); - std::swap(sustainReg[channel], swapSustain[swapIndex]); + SWAP(attackReg[channel], swapAttack[swapIndex]); + SWAP(sustainReg[channel], swapSustain[swapIndex]); } - //std::swap(vec5[channel], swapVec5[swapIndex]); // not used - //std::swap(vec19[channel], swapVec19[swapIndex]); // not used - - std::swap(chanPrio[channel], swapSongPrio[swapIndex]); - std::swap(channelMap[channel], swapVec479C[swapIndex]); - std::swap(songPosUpdateCounter[channel], swapSongPosUpdateCounter[swapIndex]); - std::swap(waveCtrlReg[channel], swapWaveCtrlReg[swapIndex]); - std::swap(songPosPtr[channel], swapSongPosPtr[swapIndex]); - std::swap(freqReg[channel], swapFreqReg[swapIndex]); - std::swap(freqDeltaCounter[channel], swapVec11[swapIndex]); - std::swap(freqDelta[channel], swapVec10[swapIndex]); - std::swap(vec20[channel], swapVec20[swapIndex]); - std::swap(songFileOrChanBufOffset[channel], swapVec8[swapIndex]); + //SWAP(vec5[channel], swapVec5[swapIndex]); // not used + //SWAP(vec19[channel], swapVec19[swapIndex]); // not used + + SWAP(chanPrio[channel], swapSongPrio[swapIndex]); + SWAP(channelMap[channel], swapVec479C[swapIndex]); + SWAP(songPosUpdateCounter[channel], swapSongPosUpdateCounter[swapIndex]); + SWAP(waveCtrlReg[channel], swapWaveCtrlReg[swapIndex]); + SWAP(songPosPtr[channel], swapSongPosPtr[swapIndex]); + SWAP(freqReg[channel], swapFreqReg[swapIndex]); + SWAP(freqDeltaCounter[channel], swapVec11[swapIndex]); + SWAP(freqDelta[channel], swapVec10[swapIndex]); + SWAP(vec20[channel], swapVec20[swapIndex]); + SWAP(songFileOrChanBufOffset[channel], swapVec8[swapIndex]); } void Player_SID::resetSwapVars() { // $52d0 |