From 6d60bb1511c19fa0cd586d78a3ff10090efa64fa Mon Sep 17 00:00:00 2001 From: Goober5000 Date: Mon, 25 Jan 2016 00:49:21 -0500 Subject: [PATCH] add some additional clarifying comments --- code/model/modelread.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/model/modelread.cpp b/code/model/modelread.cpp index 1498b46f71..78ade8af1b 100644 --- a/code/model/modelread.cpp +++ b/code/model/modelread.cpp @@ -3624,8 +3624,7 @@ void submodel_look_at(polymodel *pm, int mn) } -// Rotates the angle of a submodel. Use this so the right unlocked axis -// gets stuffed. +// Rotates the angle of a submodel, when the submodel has a subsystem (which is almost always the case) void submodel_rotate(model_subsystem *psub, submodel_instance_info *sii) { bsp_info * sm; @@ -3640,6 +3639,8 @@ void submodel_rotate(model_subsystem *psub, submodel_instance_info *sii) submodel_rotate(sm, sii); } +// Rotates the angle of a submodel. If the submodel has a subsystem, the execution flow should first go through the other +// submodel_rotate function before this one. (This function is called directly in the case of dumb_rotation.) void submodel_rotate(bsp_info *sm, submodel_instance_info *sii) { // save last angles