Skip to content

Commit

Permalink
Remove FIXMEs/silence Fish.es warnings
Browse files Browse the repository at this point in the history
Thanks to @SLAwww's explanations it's clear now :)
  • Loading branch information
DanielGibson committed May 9, 2016
1 parent 8106aed commit de4f96d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Sources/Engine/Brushes/BrushPolygon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ CBrushPolygon &CBrushPolygon::CopyPolygon(CBrushPolygon &bp)
bpo_boxBoundingBox=bp.bpo_boxBoundingBox;
bpo_pbscSector=bp.bpo_pbscSector;
bpo_rsOtherSideSectors.Clear();
//bpo_lhShadingInfos; // FIXME: DG: was this missing "= bp.bpo_lhShadingInfos" or something like that?
//bpo_lhShadingInfos; // don't copy or anything, it's a CListHead which must not be copied
bpo_iInWorld=bp.bpo_iInWorld;
return *this;
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/Entities/Fish.es
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ procedures:
// declare yourself as a model
InitAsModel();
// fish must not go upstairs, or it will get out of water
SetPhysicsFlags((EPF_MODEL_WALKING|EPF_HASGILLS)&~EPF_ONBLOCK_CLIMBORSLIDE|EPF_ONBLOCK_SLIDE);
SetPhysicsFlags(((EPF_MODEL_WALKING|EPF_HASGILLS)&~EPF_ONBLOCK_CLIMBORSLIDE)|EPF_ONBLOCK_SLIDE);
SetCollisionFlags(ECF_MODEL);
SetFlags(GetFlags()|ENF_ALIVE);
SetHealth(30.0f);
Expand Down
5 changes: 1 addition & 4 deletions Sources/EntitiesMP/Fish.es
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,7 @@ procedures:
// declare yourself as a model
InitAsModel();
// fish must not go upstairs, or it will get out of water
// FIXME: DG: should it really be
// (EPF_MODEL_WALKING|EPF_HASGILLS) & ~EPF_ONBLOCK_CLIMBORSLIDE ) | EPF_ONBLOCK_SLIDE
// or rather (EPF_MODEL_WALKING|EPF_HASGILLS) & ~(EPF_ONBLOCK_CLIMBORSLIDE|EPF_ONBLOCK_SLIDE) ??
SetPhysicsFlags((EPF_MODEL_WALKING|EPF_HASGILLS)&~EPF_ONBLOCK_CLIMBORSLIDE|EPF_ONBLOCK_SLIDE);
SetPhysicsFlags(((EPF_MODEL_WALKING|EPF_HASGILLS)&~EPF_ONBLOCK_CLIMBORSLIDE)|EPF_ONBLOCK_SLIDE);
SetCollisionFlags(ECF_MODEL);
SetFlags(GetFlags()|ENF_ALIVE);
SetHealth(30.0f);
Expand Down

0 comments on commit de4f96d

Please sign in to comment.