Add target_override_protection
This commit is contained in:
parent
cba1fc8f61
commit
f14f37f970
|
@ -29,6 +29,12 @@ static int mp_pick_kill_type();
|
|||
static char kYes[] = "YES";
|
||||
static char kNo[] = "NO";
|
||||
|
||||
// 0x53DAFC
|
||||
static char default_proto_builder_name[36] = "EVERTS SCOTTY";
|
||||
|
||||
// 0x559924
|
||||
char* proto_builder_name = default_proto_builder_name;
|
||||
|
||||
// 0x559B94
|
||||
static const char* wall_light_strs[] = {
|
||||
"North/South",
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
namespace fallout {
|
||||
|
||||
extern char* proto_builder_name;
|
||||
extern bool can_modify_protos;
|
||||
|
||||
void init_mapper_protos();
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#include "art.h"
|
||||
#include "game.h"
|
||||
#include "map.h"
|
||||
#include "mapper/mp_proto.h"
|
||||
#include "proto.h"
|
||||
#include "window_manager_private.h"
|
||||
|
||||
|
@ -22,7 +23,17 @@ static bool tgt_overriden = false;
|
|||
// 0x49B2F0
|
||||
void target_override_protection()
|
||||
{
|
||||
// TODO: Incomplete.
|
||||
char* name;
|
||||
|
||||
tgt_overriden = true;
|
||||
|
||||
name = getenv("MAIL_NAME");
|
||||
if (name != NULL) {
|
||||
// NOTE: Unsafe, backing buffer is 32 byte max.
|
||||
strcpy(proto_builder_name, strupr(name));
|
||||
} else {
|
||||
strcpy(proto_builder_name, "UNKNOWN");
|
||||
}
|
||||
}
|
||||
|
||||
// 0x49B2F0
|
||||
|
|
Loading…
Reference in New Issue