Batch #1449 by Yommy: 2 byte-identical, 0 confirmed by peer review. - fn_17872 CPathFinder::Height: byte-identical - fn_17873 CPathFinder::Width: byte-identical Merged automatically: every function is byte-identical to the original. Adds to the build: Source/Contents/MapSkyMgr.cpp, Source/Contents/EquipmentResources.cpp, Source/Contents/Pathfinding.cpp, Source/Resource/ImfResource.cpp
29 lines
644 B
C++
29 lines
644 B
C++
#include "Contents/Actors/RenderObject.h"
|
|
#include "Contents/World/WorldActors.h"
|
|
#include "Contents/World/WorldObjects.h"
|
|
|
|
// OFFSET: 0x00AC8220
|
|
|
|
// OFFSET: 0x00ACA4E0
|
|
// FUNCTION: fn_17692
|
|
void WorldObjects::Remove(CRenderObject* object) {
|
|
for (auto entry = this->objects.begin(); entry != this->objects.end(); ++entry) {
|
|
if (*entry == object) {
|
|
delete object;
|
|
this->objects.erase(entry);
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
// INLINED
|
|
void WorldObjects::Clear() {
|
|
auto entry = this->objects.begin();
|
|
|
|
while (entry != this->objects.end()) {
|
|
delete *entry;
|
|
entry = this->objects.erase(entry);
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00ACA980
|