From b65a22fc1f0e5e95be234d6d94388091f74704a9 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Fri, 16 Nov 2012 16:03:56 +0000 Subject: Fixed boolean comparison. Don't compare booleans to false / true, use them directly. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1048 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/ClientHandle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/ClientHandle.cpp') diff --git a/source/ClientHandle.cpp b/source/ClientHandle.cpp index 5967421df..c25a482ca 100644 --- a/source/ClientHandle.cpp +++ b/source/ClientHandle.cpp @@ -908,7 +908,7 @@ void cClientHandle::HandleUseEntity(int a_TargetEntityID, bool a_IsLeftClick) { virtual bool Item(cEntity * a_Entity) override { - if (a_Entity->GetWorld()->IsPVPEnabled() == false) + if (!a_Entity->GetWorld()->IsPVPEnabled()) { // PVP is disabled if (a_Entity->IsA("cPlayer") && Instigator->IsA("cPlayer")) -- cgit v1.2.3