OnlineCop / kq-fork

Fork of KQ r910. Just for fun.
GNU General Public License v2.0
15 stars 9 forks source link

Re-implement transparent mode #136

Closed pedro-w closed 2 years ago

pedro-w commented 2 years ago

Fixes #117

OnlineCop commented 2 years ago

I'm getting a compiler error on combat.cpp:328:

error C2664: 'void KDraw::menubox(Raster *,int,int,int,int,eBoxFill)': cannot convert argument 6 from 'uint8_t' to 'eBoxFill' note: Conversion to enumeration type requires an explicit cast (static_cast, C-style cast or parenthesized function-style cast)

            Draw.menubox(double_buffer, center_aligned_text - 8, top_aligned_text,
                         fighter[current_fighter_index].name.length(), 1, BLUE);

KDraw::menubox() is defined with the eBoxFill type for the last param:

    void menubox(Raster* where, int x, int y, int width, int height, eBoxFill color);

and BLUE isn't listed as a valid type,

pedro-w commented 2 years ago

Poor quality control, sorry (I made a mistake while trying to clang-format the changes without touching those places that have manual format)

Should compile now. (QC is OK for KQ, you might say?)