mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-24 09:39:51 +00:00
Don't use double negation
This commit is contained in:
parent
32caab663f
commit
f234d53269
@ -9,7 +9,7 @@ namespace Nif
|
|||||||
{
|
{
|
||||||
Named::read(nif);
|
Named::read(nif);
|
||||||
|
|
||||||
external = !!nif->getChar();
|
external = nif->getChar() != 0;
|
||||||
if(external)
|
if(external)
|
||||||
filename = nif->getString();
|
filename = nif->getString();
|
||||||
else
|
else
|
||||||
|
@ -28,7 +28,7 @@ namespace Nif
|
|||||||
///Currently specific for 4.0.0.2 and earlier
|
///Currently specific for 4.0.0.2 and earlier
|
||||||
bool NIFStream::getBoolean()
|
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
|
///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();
|
velocity = nif->getVector3();
|
||||||
props.read(nif);
|
props.read(nif);
|
||||||
|
|
||||||
hasBounds = !!nif->getInt();
|
hasBounds = nif->getBoolean();
|
||||||
if(hasBounds)
|
if(hasBounds)
|
||||||
{
|
{
|
||||||
nif->getInt(); // always 1
|
nif->getInt(); // always 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user