From 61e77600041ba534d824943320e7ddddb8e4f6ce Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Tue, 16 Sep 2008 00:07:46 +0000 Subject: Clean up some warnings in the Hexen code. Subversion-branch: /branches/raven-branch Subversion-revision: 1232 --- src/hexen/p_plats.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/hexen/p_plats.c') diff --git a/src/hexen/p_plats.c b/src/hexen/p_plats.c index 0fec8f34..ced14141 100644 --- a/src/hexen/p_plats.c +++ b/src/hexen/p_plats.c @@ -224,11 +224,13 @@ void EV_StopPlat(line_t * line, byte * args) for (i = 0; i < MAXPLATS; i++) { - if ((activeplats[i])->tag = args[0]) + activeplats[i]->tag = args[0]; + + if (activeplats[i]->tag != 0) { - (activeplats[i])->sector->specialdata = NULL; - P_TagFinished((activeplats[i])->sector->tag); - P_RemoveThinker(&(activeplats[i])->thinker); + activeplats[i]->sector->specialdata = NULL; + P_TagFinished(activeplats[i]->sector->tag); + P_RemoveThinker(&activeplats[i]->thinker); activeplats[i] = NULL; return; -- cgit v1.2.3