d/jak2: decompile conveyor | elevator | plat | bouncer | basebutton | base-plat | most of sampler | simple-nav-sphere | simple-focus | elec-gate and blocking-plane (#1942)

Most of these have been atleast partially documented / named / cleaned
up as well.

Co-authored-by: water <awaterford111445@gmail.com>
This commit is contained in:
Tyler Wilding
2022-10-08 12:42:52 -04:00
committed by GitHub
parent 2d1b5fa57c
commit be1e40a041
183 changed files with 12021 additions and 2055 deletions
+4 -3
View File
@@ -3226,14 +3226,15 @@ void FunctionCallElement::update_from_stack(const Env& env,
"type.");
}
bool is_res_lump = tp_type.method_from_type().base_type() == "res-lump";
bool is_res_lump = tp_type.method_from_type().base_type() == "res-lump" ||
tp_type.method_from_type().base_type() == "entity-actor";
bool should_use_virtual =
env.dts->ts.should_use_virtual_methods(tp_type.method_from_type(), tp_type.method_id());
if (!should_use_virtual && !is_res_lump) {
throw std::runtime_error(
fmt::format("Method call on {} id {} used a virtual call unexpectedly.",
tp_type.method_from_type().print(), tp_type.method_id()));
fmt::format("Method call on {} id {} at {} used a virtual call unexpectedly.",
tp_type.method_from_type().print(), tp_type.method_id(), "ya"));
}
if (should_use_virtual) {