Puppycamera hotfixes (#367)

* fixed some embarassing typos
This commit is contained in:
Fazana
2022-03-27 08:20:28 +01:00
committed by GitHub
parent bf8ea238e5
commit f98d43c9de
2 changed files with 5 additions and 2 deletions

View File

@@ -1205,6 +1205,9 @@ static void puppycam_script(void) {
gPuppyCam.flags &= ~PUPPYCAM_BEHAVIOUR_YAW_ROTATION;
}
else {
gPuppyCam.yaw = atan2s(gPuppyCam.pos[2] - gPuppyCam.focus[2], gPuppyCam.pos[0] - gPuppyCam.focus[0]);
}
if (volume.angles->pitch != PUPPY_NULL) {
gPuppyCam.pitchTarget = volume.angles->pitch;

View File

@@ -34,13 +34,13 @@
#include "include/command_macros_base.h"
#define PUPPYVOLUME(x, y, z, length, height, width, yaw, functionptr, anglesptr, addflags, removeflags, flagpersistance, room, shape, fov) \
CMD_BBH(0x3D, 0x24, x), \
CMD_BBH(0x3D, 0x28, x), \
CMD_HHHHHH(y, z, length, height, width, yaw), \
CMD_PTR(functionptr), \
CMD_PTR(anglesptr), \
CMD_W(addflags), \
CMD_W(removeflags), \
CMD_BBH(flagpersistance, shape, room) \
CMD_BBH(flagpersistance, shape, room), \
CMD_BBH(fov, 0x0, 0x0)
struct gPuppyOptions