Changeset 985
- Timestamp:
- Mar 17, 2014, 3:08:55 AM (11 years ago)
- Location:
- Daodan/src/patches
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/src/patches/Patches.c
r984 r985 123 123 int16_t ONICALL DD_COrTextArea_Resize(void* inTextArea, UUtRect* inBounds, int16_t inNumTextEntries) { 124 124 if (inTextArea == COgCommandLine) { 125 inBounds->top -= 5;125 inBounds->top -= 8; 126 126 } 127 127 return Oni_COrTextArea_Resize(inTextArea, inBounds, inNumTextEntries); … … 137 137 OBJtOSD_TriggerVolume *trigger_osd = &inOSD->osd.trigger_volume_osd; 138 138 M3tPoint3D *points = trigger_osd->volume.worldPoints; 139 M3tPoint3D trigger_center = {0, 0, 0};140 139 UUtUns32 shade = 0xFFFFFF; 141 140 … … 166 165 M3rGeom_Line_Light(points + 3, points + 7, shade); 167 166 M3rGeom_Line_Light(points + 2, points + 6, shade); 168 169 for(itr = 0; itr < M3cNumBoundingPoints; itr++)170 {171 MUmVector_Add(trigger_center, trigger_center, points[itr]);172 }173 174 MUmVector_Scale(trigger_center, (1.0f / ((float) M3cNumBoundingPoints)));175 167 } 176 168 -
Daodan/src/patches/objt.h
r984 r985 4 4 #define M3cNumBoundingPoints 8// Do not change without changing references below 5 5 #define M3cNumBoundingFaces 6// Do not change without changing references below 6 7 #define MUmVector_Add(dst, srca, srcb)\8 do {(dst).x = (srca).x + (srcb).x;\9 (dst).y = (srca).y + (srcb).y;\10 (dst).z = (srca).z + (srcb).z; } while (0)11 12 #define MUmVector_Scale(vec,s)\13 do {(vec).x*=(s); \14 (vec).y*=(s); \15 (vec).z*=(s); } while (0)16 6 17 7 typedef struct M3tPoint3D … … 78 68 char exit_script[SLcScript_MaxNameLength]; 79 69 80 char note[OBJcMaxNoteChars + 1]; 70 // TODO: +1 in orig, why do we have to shift here? 71 char note[OBJcMaxNoteChars + 2]; 81 72 82 73 M3tPoint3D scale;
Note:
See TracChangeset
for help on using the changeset viewer.