Skip to content

Commit fdb01b5

Browse files
committed
cleanup unused parameters in SoundEngine
1 parent 39bab11 commit fdb01b5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/engine/interface/sound.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ void SoundEngine::SoundChannel::setloc(const vec& newloc)
8383
loc = newloc;
8484
}
8585

86-
void SoundEngine::SoundChannel::setupchannel(int newn, const soundslot *newslot, const vec *newloc, extentity *newent, int newflags, int newradius)
86+
void SoundEngine::SoundChannel::setupchannel(const soundslot *newslot, const vec *newloc, extentity *newent, int newradius)
8787
{
8888
reset();
8989
inuse = true;
@@ -98,7 +98,7 @@ void SoundEngine::SoundChannel::setupchannel(int newn, const soundslot *newslot,
9898
}
9999

100100
//creates a new SoundChannel object with passed properties
101-
SoundEngine::SoundChannel& SoundEngine::newchannel(int n, const soundslot *slot, const vec *loc, extentity *ent, int flags, int radius)
101+
SoundEngine::SoundChannel& SoundEngine::newchannel(int n, const soundslot *slot, const vec *loc, extentity *ent, int radius)
102102
{
103103
if(ent)
104104
{
@@ -110,7 +110,7 @@ SoundEngine::SoundChannel& SoundEngine::newchannel(int n, const soundslot *slot,
110110
channels.emplace_back(channels.size(), *this);
111111
}
112112
SoundChannel &chan = channels[n];
113-
chan.setupchannel(n, slot, loc, ent, flags, radius);
113+
chan.setupchannel(slot, loc, ent, radius);
114114
return chan;
115115
}
116116

@@ -922,7 +922,7 @@ int SoundEngine::playsound(int n, const vec *loc, extentity *ent, int flags, int
922922
{
923923
return -1;
924924
}
925-
SoundChannel &chan = newchannel(chanid, &slot, loc, ent, flags, radius);
925+
SoundChannel &chan = newchannel(chanid, &slot, loc, ent, radius);
926926
chan.updatechannel();
927927
int playing = -1;
928928
//some ugly ternary assignments

0 commit comments

Comments
 (0)