MCPcopy Create free account
hub / github.com/crawl/crawl / _center_cursor

Function _center_cursor

crawl-ref/source/main.cc:963–969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

961}
962
963static void _center_cursor()
964{
965#ifndef USE_TILE_LOCAL
966 const coord_def cwhere = crawl_view.grid2view(you.pos());
967 cgotoxy(cwhere.x, cwhere.y, GOTO_DNGN);
968#endif
969}
970
971// We have to refresh the SH display if the player's incapacitated state
972// changes (getting confused/paralysed/etc. sets SH to 0, recovering

Callers 1

_get_next_cmdFunction · 0.85

Calls 3

grid2viewMethod · 0.80
cgotoxyFunction · 0.70
posMethod · 0.45

Tested by

no test coverage detected