Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: new_map centers automatically control point on negative coords #55

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AzazelN28
Copy link
Collaborator

Un pequeño programilla para probar que funciona la feature:

program feat_new_map_center;
private
    int cx, cy;
begin
    graph = new_map(32, 32, -1, -1, 0);
    get_point(file, graph, 0, offset cx, offset cy);
    assert(cx == 16, "Punto de control inicial en el centro");
    assert(cy == 16, "Punto de control inicial en el centro");
    exit("Ok", 0);
end

function assert(condition, message)
begin
  if (!condition)
    exit(message, 1);
  end
  return(0);
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant