Packed font rendering

This commit is contained in:
2022-12-28 22:50:54 +00:00
parent 329e10f2d6
commit 76273e1c54
23 changed files with 211 additions and 132 deletions

View File

@@ -131,7 +131,7 @@ int gameobject_makefromprefab(char *path)
FILE *fprefab = fopen(path, "rb");
if (fprefab == NULL) {
YughError("Could not find prefab %s.", path);
return;
return -1;
}
struct gameobject *new = get_gameobject_from_id(MakeGameobject());
@@ -142,6 +142,8 @@ int gameobject_makefromprefab(char *path)
fclose(fprefab);
arrlast(gameobjects).editor.id = arrlen(gameobjects)-1;
return arrlen(gameobjects)-1;
}