Skip setting segnum/signature of non-objects
This commit is contained in:
parent
96898bab0a
commit
7064fcccba
|
@ -821,14 +821,13 @@ void init_objects()
|
||||||
free_obj_list[i] = i;
|
free_obj_list[i] = i;
|
||||||
const auto &&objp = vobjptr(i);
|
const auto &&objp = vobjptr(i);
|
||||||
objp->type = OBJ_NONE;
|
objp->type = OBJ_NONE;
|
||||||
objp->segnum = segment_none;
|
|
||||||
objp->signature = obj_get_signature();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
range_for (auto &j, Segments)
|
range_for (auto &j, Segments)
|
||||||
j.objects = object_none;
|
j.objects = object_none;
|
||||||
|
|
||||||
ConsoleObject = Viewer = &Objects[0];
|
ConsoleObject = Viewer = &Objects[0];
|
||||||
|
ConsoleObject->segnum = segment_none;
|
||||||
|
|
||||||
init_player_object();
|
init_player_object();
|
||||||
obj_link(vobjptridx(ConsoleObject), vsegptridx(segment_first)); //put in the world in segment 0
|
obj_link(vobjptridx(ConsoleObject), vsegptridx(segment_first)); //put in the world in segment 0
|
||||||
|
|
Loading…
Reference in a new issue