mirror of
https://github.com/open-goal/jak-project
synced 2026-08-18 21:57:54 -04:00
[decomp] collectables + works ingame! (#971)
* decomp: `collectables` * fix types * `powerups` and fixes * fixes * Merge branch 'pr/929' into d/temp/collectables * fix collide stuff * update things... * update * update * temp bump global heap mem * fix `defstate` hooks wrong/unnecessary sets & collide stuff for collectables * dumb mistakes :) * stub out broken process-drawable stuff * update refs * add `:no-inspect` key and save some memory & remove birth logs * Update kmachine.h * clang * add citadel * fix no-inspect key * fix tests!! * fix stupid mistake in `collide-shape-prim-sphere` alloc * comment annoying print * feedback * fix edge-case probably * remove `:no-inspect`s
This commit is contained in:
@@ -1010,7 +1010,13 @@ goos::Object decompile_value(const TypeSpec& type,
|
||||
float value;
|
||||
memcpy(&value, bytes.data(), 4);
|
||||
double meters = (double)value / METER_LENGTH;
|
||||
return pretty_print::build_list("meters", pretty_print::float_representation(meters));
|
||||
auto rep = pretty_print::float_representation(meters);
|
||||
if (rep.print().find("the-as") != std::string::npos) {
|
||||
return rep;
|
||||
// return pretty_print::build_list("the-as", "meters", rep);
|
||||
} else {
|
||||
return pretty_print::build_list("meters", rep);
|
||||
}
|
||||
} else if (type == TypeSpec("degrees")) {
|
||||
assert(bytes.size() == 4);
|
||||
float value;
|
||||
|
||||
Reference in New Issue
Block a user