From 405fe1cfa98705d1ac3eebefc8ec26e3ddaf213f Mon Sep 17 00:00:00 2001 From: Marco Cawthorne Date: Sun, 9 Apr 2023 11:34:50 -0700 Subject: [PATCH] NSView: Mark certain methods as virtual (where it currently makes sense) --- src/client/NSView.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/client/NSView.h b/src/client/NSView.h index a8ea4ffd..b24b0c10 100644 --- a/src/client/NSView.h +++ b/src/client/NSView.h @@ -45,18 +45,18 @@ public: void NSView(void); /** the only method we we want to call setproperty() */ - nonvirtual void SetupView(void); + virtual void SetupView(void); /** only does one thing: renderscene() */ - nonvirtual void RenderView(void); + virtual void RenderView(void); /** when called, will modify 'origin' to vertically smoothed when on ground */ - nonvirtual void StairSmooth(void); + virtual void StairSmooth(void); + + /** called every CSQC_UpdateView for each player */ + virtual void UpdateView(void); /** applies an punch to our camera angle, temporarily */ nonvirtual void AddPunchAngle(vector); - - /** called every CSQC_UpdateView for each player */ - nonvirtual void UpdateView(void); /* set/get */ /** Sets the viewmode_t of the NSView. */