1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-23 09:57:41 +00:00

refactored celldraw

This commit is contained in:
Zeno Rogue
2019-10-25 12:44:41 +02:00
parent 4d5fb13b32
commit 85a08d205d
18 changed files with 3427 additions and 3304 deletions

View File

@@ -640,8 +640,10 @@ color_t distribute_color(int id) {
return v;
}
EX void do_viewdist(cell *c, const transmatrix& V, color_t& wcol, color_t& fcol) {
void celldrawer::do_viewdist() {
if(behindsphere(V)) return;
cell *c = cw.at;
int cd = (use_color_codes || number_coding == ncDistance || number_coding == ncDebug) ? curr_dist(c) : 0;