mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-24 00:39:49 +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);
|
||||
|
||||
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…
x
Reference in New Issue
Block a user