mirror of
https://github.com/open-goal/jak-project
synced 2026-08-12 20:03:14 -04:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user