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:
driAn
2008-05-30 17:39:13 +00:00
parent 757549473e
commit 9632c46243
4 changed files with 5 additions and 2 deletions
+2
View File
@@ -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
View File
@@ -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);
+1 -1
View File
@@ -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);
+1
View File
@@ -734,6 +734,7 @@ void clearsounds()
mapsounds.setsizenodelete(0);
loopv(locations) locations[i].reset();
locations.setsizenodelete(0);
gamemusic.reset();
sourcesavail = true;
}