mirror of
https://github.com/korenkonder/ReDIVA.git
synced 2026-10-08 22:50:08 +03:00
Idk how to comment this
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user