Cube  Diff

Differences From Artifact [8879a01acd]:

To Artifact [4ad5c2248e]:


142
143
144
145
146
147
148
149
150
151
152
153
154








155
156
157
158
159
160
161
142
143
144
145
146
147
148






149
150
151
152
153
154
155
156
157
158
159
160
161
162
163







-
-
-
-
-
-
+
+
+
+
+
+
+
+







}

void
updatevol()
{
	if (nosound)
		return;
	loopi(MAXCHAN) if (soundlocs[i].inuse)
	{
		if (Mix_Playing(i))
			updatechanvol(i, &soundlocs[i].loc);
		else
			soundlocs[i].inuse = false;

	for (int i = 0; i < MAXCHAN; i++) {
		if (soundlocs[i].inuse) {
			if (Mix_Playing(i))
				updatechanvol(i, &soundlocs[i].loc);
			else
				soundlocs[i].inuse = false;
		}
	}
}

void
playsoundc(int n)
{
	addmsg(0, 2, SV_SOUND, n);