ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/patches/Patches.c
(Generate patch)

Comparing Daodan/src/patches/Patches.c (file contents):
Revision 984 by alloc, Sun Mar 16 23:35:10 2014 UTC vs.
Revision 985 by alloc, Mon Mar 17 02:08:55 2014 UTC

# Line 122 | Line 122 | FILE* ONICALL DDrPrintWarning(int filena
122   _COrTextArea_Resize Oni_COrTextArea_Resize = (_COrTextArea_Resize)0;
123   int16_t ONICALL DD_COrTextArea_Resize(void* inTextArea, UUtRect* inBounds, int16_t inNumTextEntries) {
124          if (inTextArea == COgCommandLine) {
125 <                inBounds->top -= 5;
125 >                inBounds->top -= 8;
126          }
127          return Oni_COrTextArea_Resize(inTextArea, inBounds, inNumTextEntries);
128   }
# Line 136 | Line 136 | void ONICALL DD_OBJiTriggerVolume_Draw(O
136          OBJtOSD_All                             *inOSD = (OBJtOSD_All *) inObject->object_data;
137          OBJtOSD_TriggerVolume   *trigger_osd = &inOSD->osd.trigger_volume_osd;
138          M3tPoint3D                              *points = trigger_osd->volume.worldPoints;
139        M3tPoint3D                              trigger_center = {0, 0, 0};
139          UUtUns32                                shade = 0xFFFFFF;
140  
141          if (!OBJgTriggerVolume_Visible) {
# Line 165 | Line 164 | void ONICALL DD_OBJiTriggerVolume_Draw(O
164          M3rGeom_Line_Light(points + 1, points + 5, shade);
165          M3rGeom_Line_Light(points + 3, points + 7, shade);
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)));
167   }
168  
169   _ONrMechanics_Register Oni_ONrMechanics_Register = (_ONrMechanics_Register)0;

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)