Vim audoindent is broken, manually fix...

main
parent 4d79e96d84
commit 8783c057e6

@ -2936,14 +2936,14 @@ void frame(void)
{ {
Entity *targeting = player; Entity *targeting = player;
/* /*
G cost: distance from the current node to the start node G cost: distance from the current node to the start node
H cost: distance from the current node to the target node H cost: distance from the current node to the target node
G H G H
SUM SUM
F cost: G + H F cost: G + H
*/ */
Vec2 to = targeting->pos; Vec2 to = targeting->pos;
PathCache *cached = get_path_cache(elapsed_time, it->cached_path); PathCache *cached = get_path_cache(elapsed_time, it->cached_path);
@ -4498,17 +4498,17 @@ F cost: G + H
pressed = (PressedState) { 0 }; pressed = (PressedState) { 0 };
} }
} }
void cleanup(void) void cleanup(void)
{ {
sg_shutdown(); sg_shutdown();
hmfree(imui_state); hmfree(imui_state);
Log("Cleaning up\n"); Log("Cleaning up\n");
} }
void event(const sapp_event *e) void event(const sapp_event *e)
{ {
if (e->key_repeat) return; if (e->key_repeat) return;
if (e->type == SAPP_EVENTTYPE_TOUCHES_BEGAN) if (e->type == SAPP_EVENTTYPE_TOUCHES_BEGAN)
{ {
@ -4728,10 +4728,10 @@ F cost: G + H
#endif #endif
if (!ignore_movement) mouse_pos = V2(e->mouse_x, (float)sapp_height() - e->mouse_y); if (!ignore_movement) mouse_pos = V2(e->mouse_x, (float)sapp_height() - e->mouse_y);
} }
} }
sapp_desc sokol_main(int argc, char* argv[]) sapp_desc sokol_main(int argc, char* argv[])
{ {
(void)argc; (void)argv; (void)argc; (void)argv;
return (sapp_desc) { return (sapp_desc) {
.init_cb = init, .init_cb = init,
@ -4746,4 +4746,4 @@ F cost: G + H
.win32_console_create = true, .win32_console_create = true,
.icon.sokol_default = true, .icon.sokol_default = true,
}; };
} }

Loading…
Cancel
Save