|
@@ -367,7 +367,7 @@ void dns_mapdata_load_palette_one(struct mapdata_header* data_header) {
|
367
|
367
|
void dns_apply_lighting(void* blockset, u8 secondary, struct color* buffer) {
|
368
|
368
|
if (dns_get_time_of_day() != NIGHT)
|
369
|
369
|
return;
|
370
|
|
- for (int i = 0; i < (sizeof (lightmap) / sizeof (lightmap[0])); ++i) {
|
|
370
|
+ for (unsigned int i = 0; i < (sizeof (lightmap) / sizeof (lightmap[0])); ++i) {
|
371
|
371
|
if (blockset == lightmap[i].blockset) {
|
372
|
372
|
buffer[(lightmap[i].pal - (secondary ? 7 : 0)) * 16 + lightmap[i].index] = lightmap[i].color;
|
373
|
373
|
}
|
|
@@ -442,4 +442,4 @@ void dns_pal_patch_for_npc(u16 tag, u8 pal_slot) {
|
442
|
442
|
tint_palette(pal_slot);
|
443
|
443
|
dns_apply_shaders(pal_slot + 16, 1, palette_unfaded_buffer);
|
444
|
444
|
}
|
445
|
|
-/*use fade in animation, load palettes according to current fade state*/
|
|
445
|
+/*use fade in animation, load palettes according to current fade state*/
|