Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add some kind of checking, so that things don't get lasatted by bunkers.

  • Loading branch information...
commit 639f735b2721c9a41d52341fade58d8909f1b467 1 parent 88788ad
@perim perim authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  src/multistruct.cpp
View
3  src/multistruct.cpp
@@ -258,7 +258,6 @@ BOOL recvLasSat(NETQUEUE queue)
STRUCTURE *psStruct;
uint32_t id,targetid;
- // TODO Add some kind of checking, so that things don't get lasatted by bunkers.
NETbeginDecode(queue, GAME_LASSAT);
NETuint8_t(&player);
NETuint32_t(&id);
@@ -269,7 +268,7 @@ BOOL recvLasSat(NETQUEUE queue)
psStruct = IdToStruct (id, player);
psObj = IdToPointer(targetid, targetplayer);
- if (psStruct && psObj)
+ if (psStruct && psObj && psStruct->pStructureType->psWeapStat[0]->weaponSubClass == WSC_LAS_SAT)
{
// Give enemy no quarter, unleash the lasat
proj_SendProjectile(&psStruct->asWeaps[0], NULL, player, psObj->pos, psObj, true, 0);

0 comments on commit 639f735

Please sign in to comment.
Something went wrong with that request. Please try again.