Add target_pick_local_var

This commit is contained in:
Alexander Batalov 2023-07-24 08:20:15 +03:00
parent ca206da4af
commit f93aa710a4
2 changed files with 26 additions and 0 deletions

View File

@ -126,4 +126,29 @@ int target_pick_map_var(int* value_ptr)
return 0; return 0;
} }
// 0x49BE70
int target_pick_local_var(int* value_ptr)
{
int value;
int rc;
if (gMapLocalVarsLength == 0) {
return -1;
}
rc = win_get_num_i(&value,
0,
gMapLocalVarsLength - 1,
false,
"Local Variable Index #:",
100,
100);
if (rc == -1) {
return -1;
}
*value_ptr = value;
return 0;
}
} // namespace fallout } // namespace fallout

View File

@ -11,6 +11,7 @@ int target_exit();
int pick_rot(); int pick_rot();
int target_pick_global_var(int* value_ptr); int target_pick_global_var(int* value_ptr);
int target_pick_map_var(int* value_ptr); int target_pick_map_var(int* value_ptr);
int target_pick_local_var(int* value_ptr);
} // namespace fallout } // namespace fallout