1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 19:43:06 +01:00

remove old object_paint calls, replace with new

This commit is contained in:
IntelOrca
2016-01-07 19:01:19 +00:00
parent 01c67b6146
commit 40a4bd1fa8
9 changed files with 134 additions and 118 deletions

View File

@@ -734,7 +734,7 @@ static void editor_load_selected_objects_console()
uint8 entry_index, entry_type;
if (!find_object_in_entry_group(installed_entry, &entry_type, &entry_index)){
int chunk_size;
if (!object_load(-1, installed_entry, &chunk_size)) {
if (!object_load_chunk(-1, installed_entry, &chunk_size)) {
log_error("Failed to load entry %.8s", installed_entry->name);
}
}
@@ -773,7 +773,7 @@ static int cc_load_object(const utf8 **argv, int argc) {
}
else {
// Load the obect
if (!object_load(entryGroupIndex, &entry, NULL)) {
if (!object_load_chunk(entryGroupIndex, &entry, NULL)) {
console_writeline_error("Could not load object file.");
}
else {