From 5e65546e4250f84926abfe23df22bd4070bf4b61 Mon Sep 17 00:00:00 2001 From: Vamist Date: Wed, 9 Dec 2020 22:18:04 +0000 Subject: [PATCH] Small misc changes --- CoreScripts/Character/InteractableCharacter.as | 2 +- CoreScripts/Rules/CharacterHandler.as | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CoreScripts/Character/InteractableCharacter.as b/CoreScripts/Character/InteractableCharacter.as index cac0a9a..0b347d1 100644 --- a/CoreScripts/Character/InteractableCharacter.as +++ b/CoreScripts/Character/InteractableCharacter.as @@ -42,7 +42,7 @@ void onCommand(CBlob@ this, u8 cmd, CBitStream@ params) -void onHealthChange( CBlob@ this, f32 oldHealth ) +void onHealthChange(CBlob@ this, f32 oldHealth) { // Work around to 'Invalid networkid' for trying to tell CRules to remove our character if (this.hasTag("dead")) diff --git a/CoreScripts/Rules/CharacterHandler.as b/CoreScripts/Rules/CharacterHandler.as index cec7076..34aaf4d 100644 --- a/CoreScripts/Rules/CharacterHandler.as +++ b/CoreScripts/Rules/CharacterHandler.as @@ -21,8 +21,9 @@ void onInit(CRules@ this) // This will force the current character to become // Current render target this.addCommandID("character_force_talk"); - onRestart(this); + onRestart(this); + // Might get used if we want to use render:: in character rendering anywhere //id = Render::addScript(Render::layer_posthud, "CharacterHandler.as", "NewRender", 10.0f); } -- knotmirror 0.0.1