MCPcopy Create free account
hub / github.com/SimHacker/micropolis / query_tool

Function query_tool

micropolis-activity/src/sim/w_tool.c:911–922  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

909
910
911int
912query_tool(SimView *view, short x, short y)
913{
914 if ((x < 0) || (x > (WORLD_X - 1)) ||
915 (y < 0) || (y > (WORLD_Y - 1))) {
916 return -1;
917 }
918
919 doZoneStatus(x, y);
920 DidTool(view, "Qry", x, y);
921 return 1;
922}
923
924
925int

Callers 1

do_toolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected