Fixed: BUG #1732097 - 3D Model angle not set after "spawnmobj". This bug only occurred when smoothed actor rotation was enabled. The reason being that when enabled, the angle of the model is taken from mobj_t->visAngle rather than mobj_t->angle and only the later was being set in the spawnmobj process. To fix this I have refactored the various P_Spawnmobj* routines so that an angle must be specified (which is passed to the engine-side P_MobjCreate) rather than altering the returned mobj. In addition, the initialization of visAngle is now done in P_MobjCreate so as to ensure it is always initialized, matching the specified angle.
Fixed: BUG #1732097 - 3D Model angle not set after "spawnmobj".
This bug only occurred when smoothed actor rotation was enabled. The reason being that when enabled, the angle of the model is taken from mobj_t->visAngle rather than mobj_t->angle and only the later was being set in the spawnmobj process. To fix this I have refactored the various P_Spawnmobj* routines so that an angle must be specified (which is passed to the engine-side P_MobjCreate) rather than altering the returned mobj. In addition, the initialization of visAngle is now done in P_MobjCreate so as to ensure it is always initialized, matching the specified angle.