1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-11-06 00:33:01 +00:00

render entities only if visible

This commit is contained in:
Zeno Rogue
2025-04-27 01:23:00 +02:00
parent 3846ff83c3
commit 0797e540d6
4 changed files with 25 additions and 2 deletions

View File

@@ -116,6 +116,8 @@ struct entity {
double gwhere_x, gwhere_y;
double gvel_x, gvel_y;
bool visible(room *r);
void clearg() {
gwhere_x = where_x;
gwhere_y = where_y;