mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-11 15:52:30 +00:00
Fixed a bug where a players laser would stay in the map after he disconnects
This commit is contained in:
parent
af6057de54
commit
143e3793ff
1 changed files with 9 additions and 1 deletions
|
@ -5,6 +5,9 @@
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
//
|
//
|
||||||
// $Log$
|
// $Log$
|
||||||
|
// Revision 1.51 2002/03/17 02:03:48 jbravo
|
||||||
|
// Fixed a bug where a players laser would stay in the map after he disconnects
|
||||||
|
//
|
||||||
// Revision 1.50 2002/03/17 01:44:39 jbravo
|
// Revision 1.50 2002/03/17 01:44:39 jbravo
|
||||||
// Fixed the "xxx died" fraglines, did some code cleanups andalmost fixed
|
// Fixed the "xxx died" fraglines, did some code cleanups andalmost fixed
|
||||||
// DM. Only DM problem I can see is that bots are invisible.
|
// DM. Only DM problem I can see is that bots are invisible.
|
||||||
|
@ -1657,6 +1660,11 @@ void ClientDisconnect( int clientNum ) {
|
||||||
if(clientNum == g_RQ3_RefID.integer)
|
if(clientNum == g_RQ3_RefID.integer)
|
||||||
trap_Cvar_Set("g_RQ3_RefID", "-1");
|
trap_Cvar_Set("g_RQ3_RefID", "-1");
|
||||||
|
|
||||||
|
// JBravo: if the client had a laser, turn it off so it doesnt stay there forever.
|
||||||
|
if (ent->client->lasersight) {
|
||||||
|
G_FreeEntity(ent->client->lasersight);
|
||||||
|
ent->client->lasersight = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
// stop any following clients
|
// stop any following clients
|
||||||
for ( i = 0 ; i < level.maxclients ; i++ ) {
|
for ( i = 0 ; i < level.maxclients ; i++ ) {
|
||||||
|
|
Loading…
Reference in a new issue