ref: 34290e09352f50f6f24eab268ad083cd379c3dff
parent: 72668dfec86f5c3bc656b623733d05e3e51f438a
author: mkf <mkf@x230>
date: Sat May 25 03:12:09 EDT 2024
fix findmin for 2³³th time
--- a/engine.c
+++ b/engine.c
@@ -1,4 +1,4 @@
-#ifdef unix
+o#ifdef unix
#include "unix.h"
#else
#include <u.h>
@@ -289,7 +289,7 @@
int
findmin(Point p)
{
- int next, min = 999;
+ int next, min = 998;
for(int dir = NE; dir <= NW; dir++)
{
@@ -302,7 +302,7 @@
void
nextglenda(void)
{
- int min = 100, next, dir, nextdir = 0, count = 0;
+ int min = 999, next, dir, nextdir = 0, count = 0;
Point p = findglenda();
if(networked)