Skip to content

Commit

Permalink
Fix clearing camera
Browse files Browse the repository at this point in the history
  • Loading branch information
oct0xor committed Nov 15, 2022
1 parent 9045707 commit dcda2de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions mgs2_oct0xor/mgs2_oct0xor/mgs2_oct0xor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ typedef void(__cdecl* func24)(int arg0, int arg1, int arg2, int arg3, int arg4);
typedef void(__cdecl* func25)(int arg0, void* arg1);
typedef int(__cdecl* func26)();
typedef int(__cdecl* func27)(int arg0, void** arg1);
typedef void(__cdecl* func28)(void *a1, int a2, int a3);
typedef void(__cdecl* func29)(void *a1, int a2, int a3, int a4);
typedef void(__cdecl* func28)(void *arg0, int arg1, int arg2);
typedef void(__cdecl* func29)(void *arg0, int arg1, int arg2, int arg3);
typedef int(__cdecl* func30)(float *arg0, float *arg1);
typedef void(__cdecl* func31)(float *arg0, float *arg1, float arg2, int arg3);
typedef int(__cdecl* func32)(float *arg0, float *arg1, float *arg2, float *arg3, float *arg4);
Expand Down Expand Up @@ -1403,7 +1403,7 @@ CAMERA_MGS2_PC* find_next_camera(CAMERA_CHANNEL_MGS2_PC *channel, int *some_coun
if (next_camera == channel->next && next_camera->interpolate_id == 2)
return next_camera;

if (is_patchable_camera(next_camera))
if (next_camera->channel_id == 0 && is_patchable_camera(next_camera))
{
CAMERA_MGS2_PC* tps_camera = find_camera_by_id(TPS_CAMERA_ID, 0);

Expand Down Expand Up @@ -1483,7 +1483,7 @@ CAMERA_MGS2_PC* find_next_camera(CAMERA_CHANNEL_MGS2_PC *channel, int *some_coun
{
next_camera = channel->next;

if (is_patchable_camera(next_camera))
if (next_camera->channel_id == 0 && is_patchable_camera(next_camera))
{
CAMERA_MGS2_PC* tps_camera = find_camera_by_id(TPS_CAMERA_ID, 0);

Expand Down
2 changes: 1 addition & 1 deletion solid_mods_loader/solid_mods_loader/solid_mods_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ void load_mods(HANDLE handle)
int main()
{
printf("--= Solid Mods Loader by oct0xor =--\n\n");
printf("Version: 1.1\n");
printf("Version: 1.2\n");

get_mods_folder();

Expand Down

0 comments on commit dcda2de

Please sign in to comment.