void find(t_info *info) { t_coord c; char check; int ret; if (info->game->players == 0) return ; c.x = 1; c.y = 1; check = 0; while (check != 2) { check = 0; if ((ret = v_find(info, c)) || (ret = h_find(info, c))) break ; if (info->x + c.x + 1 < info->game->width || info->x - (c.x + 1) >= 0) c.x++; else ++check; if (info->y + c.y + 1 < info->game->height || info->y - (c.y + 1) >= 0) c.y++; else ++check; } move(info, ret); }
void prompt2_flush() { conscell *d = v_find(PS2); if (d == NULL || cdr(d) == NULL || LIST(cdr(d)) || *(ps2 = (char *)cdr(d)->string) == '\0') ps2 = NULL; }
NodeStorageBase::iterator NodeStorageBase::find(float x, float z) { return v_find(x, z); }
NodeStorageBase::iterator NodeStorageBase::find(ShaderScene const &state, float x, float z) { return v_find(state, x, z); }
NodeStorageBase::iterator NodeStorageBase::find(NodeBase* node) { return v_find(node); }