Don't use double negation

pull/556/head
capostrophic 5 years ago
parent 32caab663f
commit f234d53269

@ -9,7 +9,7 @@ namespace Nif
{
Named::read(nif);
external = !!nif->getChar();
external = nif->getChar() != 0;
if(external)
filename = nif->getString();
else

@ -28,7 +28,7 @@ namespace Nif
///Currently specific for 4.0.0.2 and earlier
bool NIFStream::getBoolean()
{
return !!getInt();
return getInt() != 0;
}
///Read in a string, either from the string table using the index (currently absent) or from the stream using the specified length

@ -44,7 +44,7 @@ public:
velocity = nif->getVector3();
props.read(nif);
hasBounds = !!nif->getInt();
hasBounds = nif->getBoolean();
if(hasBounds)
{
nif->getInt(); // always 1

Loading…
Cancel
Save