Code cleanup

This commit is contained in:
Antoine Pilote
2023-08-09 00:31:41 -04:00
parent f99ae1246a
commit 2262b103c2
4 changed files with 13 additions and 7 deletions

View File

@@ -372,6 +372,7 @@ namespace Nuake
double handle = wrenGetSlotDouble(vm, 1);
Entity ent = Entity((entt::entity)handle, Engine::GetCurrentScene().get());
auto& transform = ent.GetComponent<TransformComponent>();
// set the slots
double x = wrenGetSlotDouble(vm, 2);
double y = wrenGetSlotDouble(vm, 3);
@@ -431,7 +432,8 @@ namespace Nuake
}
}
static void BrushGetTargetsCount(WrenVM* vm) {
static void BrushGetTargetsCount(WrenVM* vm)
{
double handle = wrenGetSlotDouble(vm, 1);
Entity ent = Entity((entt::entity)handle, Engine::GetCurrentScene().get());