… | |
… | |
150 | if (x >= row->c0) |
150 | if (x >= row->c0) |
151 | { |
151 | { |
152 | if (x >= row->c1) |
152 | if (x >= row->c1) |
153 | break; |
153 | break; |
154 | |
154 | |
155 | mapcell *cell = row->col + (x - row->c0); |
155 | row->col[x - row->c0].darkness = -1; |
156 | cell->darkness = -1; |
|
|
157 | cell->face [2] = 0; |
|
|
158 | } |
156 | } |
159 | } |
157 | } |
160 | } |
158 | } |
161 | |
159 | |
162 | MODULE = CFClient PACKAGE = CFClient |
160 | MODULE = CFClient PACKAGE = CFClient |
… | |
… | |
560 | { |
558 | { |
561 | cell->face [2] = (data [0] << 8) + data [1]; data += 2; |
559 | cell->face [2] = (data [0] << 8) + data [1]; data += 2; |
562 | } |
560 | } |
563 | } |
561 | } |
564 | else |
562 | else |
565 | { |
|
|
566 | cell->darkness = -1; |
563 | cell->darkness = -1; |
567 | cell->face [2] = 0; |
|
|
568 | } |
|
|
569 | } |
564 | } |
570 | } |
565 | } |
571 | |
566 | |
572 | void |
567 | void |
573 | draw (CFClient::Map self, int x0, int y0, int sw, int sh) |
568 | draw (CFClient::Map self, int x0, int y0, int sw, int sh) |