mirror of
https://github.com/zoriya/My3D.git
synced 2026-06-01 01:58:27 +00:00
Solving a sefault in options
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
|
||||
<gc_entity>
|
||||
<game_manager happiness="50%" stupidity="0%" />
|
||||
<teams_component delay="2">
|
||||
<teams_component delay="10">
|
||||
<prefab src="prefabs/teams/forgot_register.gcprefab" height="20%" />
|
||||
<prefab src="prefabs/teams/absent.gcprefab" height="20%" />
|
||||
</teams_component>
|
||||
|
||||
+2
-2
@@ -100,12 +100,12 @@ bool resolution_up(gc_engine *engine, gc_entity *entity, gc_vector2 _)
|
||||
return (false);
|
||||
while (resolutions[i].x <= rend->resolution.x)
|
||||
i++;
|
||||
if (resolutions[i].x == INT_MAX)
|
||||
return (true);
|
||||
sfRenderWindow_setSize(rend->window, (sfVector2u){
|
||||
resolutions[i].x,
|
||||
resolutions[i].y
|
||||
});
|
||||
if (resolutions[i].x == INT_MAX)
|
||||
return (true);
|
||||
rend->resolution = resolutions[i];
|
||||
resolution_set_text(engine->scene->get_entity(engine->scene, 51), engine);
|
||||
return (true);
|
||||
|
||||
Reference in New Issue
Block a user