From 2148351799fc9d3732eb161844d9f471ad6a5f21 Mon Sep 17 00:00:00 2001 From: vis2k Date: Thu, 26 Jul 2018 12:51:36 +0200 Subject: [PATCH] UNetBehaviourProcessor WriteMessage comments added to make this more obvious in the future. --- .../Weaver/UNetBehaviourProcessor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Unity-Technologies-networking/Weaver/UNetBehaviourProcessor.cs b/Unity-Technologies-networking/Weaver/UNetBehaviourProcessor.cs index 8f5b5f525..4dd7dac87 100644 --- a/Unity-Technologies-networking/Weaver/UNetBehaviourProcessor.cs +++ b/Unity-Technologies-networking/Weaver/UNetBehaviourProcessor.cs @@ -117,7 +117,7 @@ static void WriteCreateWriter(ILProcessor worker) static void WriteMessageSize(ILProcessor worker) { //write size - worker.Append(worker.Create(OpCodes.Ldloc_0)); + worker.Append(worker.Create(OpCodes.Ldloc_0)); // load 'writer.' worker.Append(worker.Create(OpCodes.Ldc_I4_0)); worker.Append(worker.Create(OpCodes.Callvirt, Weaver.NetworkWriterWriteInt16)); } @@ -125,7 +125,7 @@ static void WriteMessageSize(ILProcessor worker) static void WriteMessageId(ILProcessor worker, int msgId) { // write msg id - worker.Append(worker.Create(OpCodes.Ldloc_0)); + worker.Append(worker.Create(OpCodes.Ldloc_0)); // load 'writer.' worker.Append(worker.Create(OpCodes.Ldc_I4, msgId)); worker.Append(worker.Create(OpCodes.Conv_U2)); worker.Append(worker.Create(OpCodes.Callvirt, Weaver.NetworkWriterWriteInt16));