mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-20 08:00:56 +00:00
- SW: Replace PANEL_SPRITEstruct
y
with pos.Y
calls.
This commit is contained in:
parent
defdb23533
commit
145028bc16
3 changed files with 228 additions and 228 deletions
File diff suppressed because it is too large
Load diff
|
@ -108,7 +108,7 @@ struct PANEL_SPRITEstruct
|
|||
// Do not change the order of this line
|
||||
DVector2 pos;
|
||||
double xorig;
|
||||
double y, yorig; // Do not change the order of this
|
||||
double yorig; // Do not change the order of this
|
||||
// line
|
||||
|
||||
PANEL_SPRITE_OVERLAY over[8];
|
||||
|
@ -135,10 +135,10 @@ struct PANEL_SPRITEstruct
|
|||
|
||||
// Inline helpers.
|
||||
void backupx() { ox = pos.X; };
|
||||
void backupy() { oy = y; };
|
||||
void backupy() { oy = pos.Y; };
|
||||
void backupcoords() { backupx(); backupy(); };
|
||||
void backupbobx() { xorig = pos.X; };
|
||||
void backupboby() { yorig = y; };
|
||||
void backupboby() { yorig = pos.Y; };
|
||||
void backupbobcoords() { backupbobx(); backupboby(); };
|
||||
};
|
||||
|
||||
|
|
|
@ -331,7 +331,7 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, PANEL_SPRITEstruct
|
|||
("ox", w.ox)
|
||||
("oy", w.oy)
|
||||
("x", w.pos.X)
|
||||
("y", w.y)
|
||||
("y", w.pos.Y)
|
||||
.Array("over", w.over, countof(w.over))
|
||||
("id", w.ID)
|
||||
("picndx", w.picndx)
|
||||
|
@ -367,7 +367,7 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, PANEL_SPRITEstruct
|
|||
if (arc.isReading())
|
||||
{
|
||||
w.ox = w.pos.X;
|
||||
w.oy = w.y;
|
||||
w.oy = w.pos.Y;
|
||||
}
|
||||
return arc;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue