mirror of https://github.com/pmret/papermario.git
Formatting
This commit is contained in:
parent
e8ed3ae03f
commit
e818be1b9f
|
@ -4,7 +4,7 @@ ApiStatus SetCamEnabled(ScriptInstance* script, s32 isInitialCall) {
|
||||||
Bytecode* ptrReadPos = script->ptrReadPos;
|
Bytecode* ptrReadPos = script->ptrReadPos;
|
||||||
Bytecode id = get_variable(script, *ptrReadPos++);
|
Bytecode id = get_variable(script, *ptrReadPos++);
|
||||||
Bytecode enabled = get_variable(script, *ptrReadPos++);
|
Bytecode enabled = get_variable(script, *ptrReadPos++);
|
||||||
|
|
||||||
if (!enabled) {
|
if (!enabled) {
|
||||||
(&gCameras[id])->flags |= 0x2;
|
(&gCameras[id])->flags |= 0x2;
|
||||||
} else {
|
} else {
|
||||||
|
@ -64,11 +64,11 @@ ApiStatus func_802CA988(ScriptInstance* script, s32 isInitialCall) {
|
||||||
Bytecode outVar4 = *ptrReadPos++;
|
Bytecode outVar4 = *ptrReadPos++;
|
||||||
f32 temp1, temp2, temp3;
|
f32 temp1, temp2, temp3;
|
||||||
f32 tempSqrt;
|
f32 tempSqrt;
|
||||||
|
|
||||||
(&gCameras[id])->mode = 2;
|
(&gCameras[id])->mode = 2;
|
||||||
(&gCameras[id])->unk_06 = 0;
|
|
||||||
(&gCameras[id])->unk_1C = -1 * round((&gCameras[id])->currentPitch);
|
(&gCameras[id])->unk_1C = -1 * round((&gCameras[id])->currentPitch);
|
||||||
(&gCameras[id])->unk_1E = -1 * (&gCameras[id])->currentBlendedYawNegated;
|
(&gCameras[id])->unk_1E = -1 * (&gCameras[id])->currentBlendedYawNegated;
|
||||||
|
(&gCameras[id])->unk_06 = 0;
|
||||||
|
|
||||||
temp1 = (&gCameras[id])->lookAt_obj[0] - (&gCameras[id])->lookAt_eye[0];
|
temp1 = (&gCameras[id])->lookAt_obj[0] - (&gCameras[id])->lookAt_eye[0];
|
||||||
temp2 = (&gCameras[id])->lookAt_obj[1] - (&gCameras[id])->lookAt_eye[1];
|
temp2 = (&gCameras[id])->lookAt_obj[1] - (&gCameras[id])->lookAt_eye[1];
|
||||||
|
|
Loading…
Reference in New Issue