mirror of
https://github.com/electronicarts/CNC_TS_and_RA2_Mission_Editor.git
synced 2025-07-22 07:04:56 -04:00
Introduced voxel render lib written by Thomas Sneddon .
This commit is contained in:
parent
5648034cc5
commit
38ddc52d28
16 changed files with 329 additions and 215 deletions
1
3rdParty/CncVxlRender
vendored
Submodule
1
3rdParty/CncVxlRender
vendored
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit ebea5a3718f27be0a57e717fafa8cc2afbede0e1
|
2
3rdParty/xcc/misc/cc_file.h
vendored
2
3rdParty/xcc/misc/cc_file.h
vendored
|
@ -191,5 +191,5 @@ private:
|
|||
bool m_is_open = false;
|
||||
int64_t m_p;
|
||||
const bool m_read_on_open;
|
||||
size_t m_size;
|
||||
int64_t m_size;
|
||||
};
|
||||
|
|
5
3rdParty/xcc/misc/tmp_ts_file.h
vendored
5
3rdParty/xcc/misc/tmp_ts_file.h
vendored
|
@ -34,7 +34,10 @@ public:
|
|||
bool is_valid() const
|
||||
{
|
||||
const t_tmp_ts_header& h = header();
|
||||
auto const size = get_size();
|
||||
if (get_size() < 0) {
|
||||
return false;
|
||||
}
|
||||
auto const size = static_cast<size_t>(get_size());
|
||||
if (sizeof(t_tmp_ts_header) > size ||
|
||||
!h.cblocks_x || !h.cblocks_y ||
|
||||
h.cx != 48 && h.cx != 60 ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue