fix typo (#2266)
This commit is contained in:
parent
a1710ff51e
commit
dadf418fe0
3 changed files with 11 additions and 11 deletions
|
|
@ -1005,7 +1005,7 @@ void ChangeLightRadius(int i, int r)
|
|||
|
||||
LightList[i]._lunflag = true;
|
||||
LightList[i].position.old = LightList[i].position.tile;
|
||||
LightList[i].oldRadious = LightList[i]._lradius;
|
||||
LightList[i].oldRadius = LightList[i]._lradius;
|
||||
LightList[i]._lradius = r;
|
||||
dolighting = true;
|
||||
}
|
||||
|
|
@ -1018,7 +1018,7 @@ void ChangeLightXY(int i, Point position)
|
|||
|
||||
LightList[i]._lunflag = true;
|
||||
LightList[i].position.old = LightList[i].position.tile;
|
||||
LightList[i].oldRadious = LightList[i]._lradius;
|
||||
LightList[i].oldRadius = LightList[i]._lradius;
|
||||
LightList[i].position.tile = position;
|
||||
dolighting = true;
|
||||
}
|
||||
|
|
@ -1031,7 +1031,7 @@ void ChangeLightOff(int i, Point position)
|
|||
|
||||
LightList[i]._lunflag = true;
|
||||
LightList[i].position.old = LightList[i].position.tile;
|
||||
LightList[i].oldRadious = LightList[i]._lradius;
|
||||
LightList[i].oldRadius = LightList[i]._lradius;
|
||||
LightList[i].position.offset = position;
|
||||
dolighting = true;
|
||||
}
|
||||
|
|
@ -1044,7 +1044,7 @@ void ChangeLight(int i, Point position, int r)
|
|||
|
||||
LightList[i]._lunflag = true;
|
||||
LightList[i].position.old = LightList[i].position.tile;
|
||||
LightList[i].oldRadious = LightList[i]._lradius;
|
||||
LightList[i].oldRadius = LightList[i]._lradius;
|
||||
LightList[i].position.tile = position;
|
||||
LightList[i]._lradius = r;
|
||||
dolighting = true;
|
||||
|
|
@ -1063,7 +1063,7 @@ void ProcessLightList()
|
|||
DoUnLight(LightList[j].position.tile.x, LightList[j].position.tile.y, LightList[j]._lradius);
|
||||
}
|
||||
if (LightList[j]._lunflag) {
|
||||
DoUnLight(LightList[j].position.old.x, LightList[j].position.old.y, LightList[j].oldRadious);
|
||||
DoUnLight(LightList[j].position.old.x, LightList[j].position.old.y, LightList[j].oldRadius);
|
||||
LightList[j]._lunflag = false;
|
||||
}
|
||||
}
|
||||
|
|
@ -1130,7 +1130,7 @@ void ChangeVisionRadius(int id, int r)
|
|||
if (VisionList[i]._lid == id) {
|
||||
VisionList[i]._lunflag = true;
|
||||
VisionList[i].position.old = VisionList[i].position.tile;
|
||||
VisionList[i].oldRadious = VisionList[i]._lradius;
|
||||
VisionList[i].oldRadius = VisionList[i]._lradius;
|
||||
VisionList[i]._lradius = r;
|
||||
dovision = true;
|
||||
}
|
||||
|
|
@ -1143,7 +1143,7 @@ void ChangeVisionXY(int id, Point position)
|
|||
if (VisionList[i]._lid == id) {
|
||||
VisionList[i]._lunflag = true;
|
||||
VisionList[i].position.old = VisionList[i].position.tile;
|
||||
VisionList[i].oldRadious = VisionList[i]._lradius;
|
||||
VisionList[i].oldRadius = VisionList[i]._lradius;
|
||||
VisionList[i].position.tile = position;
|
||||
dovision = true;
|
||||
}
|
||||
|
|
@ -1158,7 +1158,7 @@ void ProcessVisionList()
|
|||
DoUnVision(VisionList[i].position.tile, VisionList[i]._lradius);
|
||||
}
|
||||
if (VisionList[i]._lunflag) {
|
||||
DoUnVision(VisionList[i].position.old, VisionList[i].oldRadious);
|
||||
DoUnVision(VisionList[i].position.old, VisionList[i].oldRadius);
|
||||
VisionList[i]._lunflag = false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ struct LightListStruct {
|
|||
int _lid;
|
||||
bool _ldel;
|
||||
bool _lunflag;
|
||||
int oldRadious;
|
||||
int oldRadius;
|
||||
bool _lflags;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -784,7 +784,7 @@ static void LoadLighting(LoadHelper *file, LightListStruct *pLight)
|
|||
file->skip(4); // Unused
|
||||
pLight->position.old.x = file->nextLE<int32_t>();
|
||||
pLight->position.old.y = file->nextLE<int32_t>();
|
||||
pLight->oldRadious = file->nextLE<int32_t>();
|
||||
pLight->oldRadius = file->nextLE<int32_t>();
|
||||
pLight->position.offset.x = file->nextLE<int32_t>();
|
||||
pLight->position.offset.y = file->nextLE<int32_t>();
|
||||
pLight->_lflags = file->nextBool32();
|
||||
|
|
@ -1824,7 +1824,7 @@ static void SaveLighting(SaveHelper *file, LightListStruct *pLight)
|
|||
file->skip(4); // Unused
|
||||
file->writeLE<int32_t>(pLight->position.old.x);
|
||||
file->writeLE<int32_t>(pLight->position.old.y);
|
||||
file->writeLE<int32_t>(pLight->oldRadious);
|
||||
file->writeLE<int32_t>(pLight->oldRadius);
|
||||
file->writeLE<int32_t>(pLight->position.offset.x);
|
||||
file->writeLE<int32_t>(pLight->position.offset.y);
|
||||
file->writeLE<uint32_t>(pLight->_lflags ? 1 : 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue