mirror of
https://github.com/zeldaret/tww.git
synced 2026-09-08 11:25:58 -04:00
Compiler compatibility (#1171)
* mark functions with duplicate names as static * make std::__tag_va_List work with other compilers * fix some offset comments * use inlines in J3DJointFactory, JUTCacheFont * fix class/struct mismatch * improve const correctness * fix missing return values * make some JAudio namespaces more explicit
This commit is contained in:
@@ -422,7 +422,7 @@ bool daObjIce_c::_execute() {
|
||||
}
|
||||
|
||||
/* 00000EB8-00000F48 .text set_material_sub__FP11J3DMaterialUc */
|
||||
void set_material_sub(J3DMaterial* material, unsigned char alpha) {
|
||||
static void set_material_sub(J3DMaterial* material, unsigned char alpha) {
|
||||
while (material != NULL) {
|
||||
if (alpha == 0) {
|
||||
material->getShape()->hide();
|
||||
@@ -435,7 +435,7 @@ void set_material_sub(J3DMaterial* material, unsigned char alpha) {
|
||||
}
|
||||
|
||||
/* 00000F48-00000FB0 .text set_material__FP8J3DModelUc */
|
||||
void set_material(J3DModel* model, unsigned char alpha) {
|
||||
static void set_material(J3DModel* model, unsigned char alpha) {
|
||||
J3DModelData* modelData = model->getModelData();
|
||||
for (u16 i = 0; i < modelData->getJointNum(); i++) {
|
||||
set_material_sub(modelData->getJointNodePointer(i)->getMesh(), alpha);
|
||||
|
||||
Reference in New Issue
Block a user