Commit Graph

26 Commits

Author SHA1 Message Date
Alexander Batalov 66955f893a Review light.cc 2023-01-03 23:56:52 +03:00
Alexander Batalov 9ee4cb4a26 Refactor min/max usage 2023-01-03 23:00:38 +03:00
Alexander Batalov a5cefd6c8b Clear dirty rect during map updates
Previous solution to replace squares was destructive in nature and
could possibly lead to unexpected things (especially with mods where
tile 0x293 might not be opaque black).

New solution follows mapper refresh routines where entire dirty rect
is reset to black as a preparation step.
2023-01-03 21:10:20 +03:00
Alexander Batalov 462baa0a04 Improve color tables accuracy 2022-12-27 15:51:43 +03:00
Alexander Batalov 343911f736 Fix floor lighting 2022-12-20 18:44:21 +03:00
Alexander Batalov 281c1aa82a Review tileRenderFloorsInRect 2022-12-20 16:22:56 +03:00
Alexander Batalov 18afce71b0 Review tile_fill_roof 2022-12-20 15:10:42 +03:00
Alexander Batalov 9599d63f45 Review roof_fill_off 2022-12-20 15:09:01 +03:00
Alexander Batalov ce351988b5 Review roof_fill_on 2022-12-20 15:01:57 +03:00
Alexander Batalov 4821cab724 Review tileSetCenter flags 2022-10-29 18:52:22 +03:00
Alexander Batalov 0851354c8a Rename _square_y 2022-10-29 18:25:28 +03:00
Alexander Batalov 2f42818a33 Review square coords math 2022-10-29 18:23:53 +03:00
Alexander Batalov 54d230432b
Refactor game config with Settings (#164) 2022-10-06 16:32:46 +03:00
Alexander Batalov 65f43804b3 Rename core 2022-10-05 10:35:05 +03:00
Alexander Batalov 9bb053b3ba
Add namespace (#155) 2022-09-23 15:43:44 +03:00
Alexander Batalov 1b6e29acc0 Reorder includes 2022-09-15 12:38:23 +03:00
Alexander Batalov e41a4b8e16
Reconcile with reference edition (#100) 2022-07-29 16:04:05 +03:00
Alexander Batalov 158826ed63 Fix some msvc x86 warnings 2022-07-07 10:52:54 +03:00
Alexander Batalov c6bda58dce Cleanup inventory.h
See #42
2022-06-19 13:32:42 +03:00
Alexander Batalov a5a86749b7 Make tile functions static
See #42
2022-06-19 08:07:06 +03:00
Alexander Batalov 7658a41f64 Cleanup tile.h
See #42
2022-06-19 08:02:47 +03:00
Alexander Batalov 2a9e00d730 Fix tile border calculation
Closes #9
2022-06-11 21:40:12 +03:00
Alexander Batalov 4bac829739 Add string functions compatibility layer
See #17
2022-05-28 11:57:32 +03:00
Alexander Batalov 2446621719 Rename tile stuff 2022-05-24 01:37:46 +03:00
Alexander Batalov 2d54e41fdb Fix tile border calculation
See #9
2022-05-23 22:41:54 +03:00
Alexander Batalov 98c6acbf11 Convert to C++ 2022-05-21 18:22:03 +03:00
Renamed from src/tile.c (Browse further)