Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
TwelveEyes committed Jun 29, 2024
1 parent de5af42 commit 2c551a8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions code/game/g_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ along with this program; if not, see <http://www.gnu.org/licenses/>.
#include "g_navigator.h"
#include "b_local.h"
#include "g_nav.h"
#include "wp_saber.h"

#define ACT_ACTIVE qtrue
#define ACT_INACTIVE qfalse
Expand Down Expand Up @@ -911,7 +912,7 @@ void G_FreeEntity( gentity_t *ed ) {
if(ed->client->clientInfo.customJediSoundDir) {
gi.Free(ed->client->clientInfo.customJediSoundDir);
}
if(ed->client->ps.saber[0].name && gi.bIsFromZone(ed->client->ps.saber[0].name, TAG_G_ALLOC) ) {
/* if(ed->client->ps.saber[0].name && gi.bIsFromZone(ed->client->ps.saber[0].name, TAG_G_ALLOC) ) {
gi.Free(ed->client->ps.saber[0].name);
}
if(ed->client->ps.saber[0].model && gi.bIsFromZone(ed->client->ps.saber[0].model, TAG_G_ALLOC) ) {
Expand All @@ -922,7 +923,9 @@ void G_FreeEntity( gentity_t *ed ) {
}
if(ed->client->ps.saber[1].model && gi.bIsFromZone(ed->client->ps.saber[1].model, TAG_G_ALLOC) ) {
gi.Free(ed->client->ps.saber[1].model);
}
} */
WP_SaberFreeStrings(ed->client->ps.saber[0]);
WP_SaberFreeStrings(ed->client->ps.saber[1]);

gi.Free(ed->client);
}
Expand Down

0 comments on commit 2c551a8

Please sign in to comment.