Browse Source

Fix partially using tabulations instead of spaces

pull/8/head
Anton Tarasenko 4 years ago
parent
commit
0ecf228b67
  1. 10
      sources/Events/Broadcast/BroadcastEventsObserver.uc
  2. BIN
      sources/Text/Tests/TEST_Parser.uc

10
sources/Events/Broadcast/BroadcastEventsObserver.uc

@ -187,7 +187,7 @@ public function bool HandlerAllowsBroadcast(Actor broadcaster, int sentTextNum)
canBroadcast = nextBroadcastHandler canBroadcast = nextBroadcastHandler
.HandlerAllowsBroadcast(broadcaster, sentTextNum); .HandlerAllowsBroadcast(broadcaster, sentTextNum);
} }
return canBroadcast; return canBroadcast;
} }
function Broadcast(Actor sender, coerce string message, optional name type) function Broadcast(Actor sender, coerce string message, optional name type)
@ -254,7 +254,7 @@ event AllowBroadcastLocalized(
function bool AllowsBroadcast(Actor broadcaster, int len) function bool AllowsBroadcast(Actor broadcaster, int len)
{ {
if (blockAllowsBroadcast) if (blockAllowsBroadcast)
return true; return true;
return super.AllowsBroadcast(broadcaster, len); return super.AllowsBroadcast(broadcaster, len);
} }
@ -288,7 +288,7 @@ function bool AcceptBroadcastText(
if (!canBroadcast) { if (!canBroadcast) {
return false; return false;
} }
return super.AcceptBroadcastText(receiver, senderPRI, message, type); return super.AcceptBroadcastText(receiver, senderPRI, message, type);
} }
@ -302,7 +302,7 @@ function bool AcceptBroadcastLocalized(
optional Object obj optional Object obj
) )
{ {
local bool canBroadcast; local bool canBroadcast;
local BroadcastEvents.LocalizedMessage packedMessage; local BroadcastEvents.LocalizedMessage packedMessage;
packedMessage.class = message; packedMessage.class = message;
packedMessage.id = switch; packedMessage.id = switch;
@ -324,7 +324,7 @@ function bool AcceptBroadcastLocalized(
if (!canBroadcast) { if (!canBroadcast) {
return false; return false;
} }
return super.AcceptBroadcastLocalized( receiver, sender, message, switch, return super.AcceptBroadcastLocalized( receiver, sender, message, switch,
relatedPRI1, relatedPRI2, obj); relatedPRI1, relatedPRI2, obj);
} }

BIN
sources/Text/Tests/TEST_Parser.uc

Binary file not shown.
Loading…
Cancel
Save