reset music on disconnect
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2120 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -679,6 +679,8 @@ void parsemessages(int cn, playerent *d, ucharbuf &p)
|
||||
// cleanups
|
||||
loopv(players) zapplayer(players[i]);
|
||||
clearvote();
|
||||
player1->state = CS_ALIVE;
|
||||
player1->spectatemode = SM_NONE;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
+1
-1
@@ -495,7 +495,7 @@ extern void soundcleanup();
|
||||
extern void checkmapsounds();
|
||||
extern void checkplayerloopsounds();
|
||||
extern void musicsuggest(int id, int millis = 0, bool rndofs = false);
|
||||
extern void musicfadeout(int id);
|
||||
extern void musicfadeout(int id = -1);
|
||||
extern void clearsounds();
|
||||
extern void detachsounds(playerent *owner);
|
||||
|
||||
|
||||
@@ -676,7 +676,7 @@ void sethudgunperspective(bool on)
|
||||
if(on)
|
||||
{
|
||||
glScalef(1, 1, 0.5f); // fix hudugns colliding with map geometry
|
||||
gluPerspective((float)100.0f*screen->h/screen->w, aspect, 0.3f, farplane); // fov fixed at 100°
|
||||
gluPerspective((float)100.0f*screen->h/screen->w, aspect, 0.3f, farplane); // fov fixed at 100°
|
||||
}
|
||||
else gluPerspective((float)dynfov()*screen->h/screen->w, aspect, 0.15f, farplane);
|
||||
glMatrixMode(GL_MODELVIEW);
|
||||
|
||||
@@ -734,6 +734,7 @@ void clearsounds()
|
||||
mapsounds.setsizenodelete(0);
|
||||
loopv(locations) locations[i].reset();
|
||||
locations.setsizenodelete(0);
|
||||
gamemusic.reset();
|
||||
sourcesavail = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user