From 3a271a399f7e41e955859676fc78eb0790bb2744 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Mon, 24 Jul 2023 08:10:46 +0300 Subject: [PATCH] Add pick_rot --- src/mapper/mp_targt.cc | 15 +++++++++++++++ src/mapper/mp_targt.h | 1 + 2 files changed, 16 insertions(+) diff --git a/src/mapper/mp_targt.cc b/src/mapper/mp_targt.cc index 0bc7aed..bc0c6e1 100644 --- a/src/mapper/mp_targt.cc +++ b/src/mapper/mp_targt.cc @@ -4,6 +4,7 @@ #include "art.h" #include "proto.h" +#include "window_manager_private.h" namespace fallout { @@ -59,4 +60,18 @@ int target_exit() return 0; } +// 0x49BD98 +int pick_rot() +{ + int value; + win_get_num_i(&value, + -1, + 5, + false, + "Rotation", + 100, + 100); + return value; +} + } // namespace fallout diff --git a/src/mapper/mp_targt.h b/src/mapper/mp_targt.h index 1c0a782..b27660a 100644 --- a/src/mapper/mp_targt.h +++ b/src/mapper/mp_targt.h @@ -8,6 +8,7 @@ bool target_overriden(); void target_make_path(char* path, int pid); int target_init(); int target_exit(); +int pick_rot(); } // namespace fallout