Idk how to comment this

This commit is contained in:
korenkonder
2024-01-09 11:56:49 +03:00
parent c10d8ff5bb
commit 1ce44e2bce
3 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -2240,7 +2240,7 @@ namespace mdl {
}
void DispManager::draw(ObjType type, int32_t depth_mask, bool a4) {
if (get_obj_count(type) < 1)
if (type < 0 || type >= mdl::OBJ_TYPE_MAX || get_obj_count(type) < 1)
return;
render_context* rctx = rctx_ptr;
-1
View File
@@ -343,7 +343,6 @@ namespace app {
}
static void Task_do_ctrl_frames(int32_t frames, bool frame_skip) {
std::list<Task*>* tasks = &task_work->tasks;
for (int32_t i = 0; i < 3; i++)
for (Task*& j : task_work->tasks) {
Task* tsk = j;
+2 -4
View File
@@ -81,10 +81,6 @@ namespace app {
void set_priority(int32_t priority);
};
struct TaskWork;
extern TaskWork* task_work;
struct TaskWork {
std::list<Task*> tasks;
Task* current_task;
@@ -111,6 +107,8 @@ namespace app {
static bool has_tasks_dest();
};
extern TaskWork* task_work;
extern void task_work_init();
extern void task_work_free();
}