mirror of
https://github.com/zeldaret/tww.git
synced 2026-08-15 04:33:21 -04:00
msg inline fixes, remove some fake jsystem inlines
This commit is contained in:
@@ -306,6 +306,11 @@ struct TVec2 {
|
||||
y += other.y;
|
||||
}
|
||||
|
||||
void add(const TVec2<T>& a, const TVec2<T>& b) {
|
||||
x = a.x + b.x;
|
||||
y = a.y + b.y;
|
||||
}
|
||||
|
||||
bool isAbove(const TVec2<T>& other) const {
|
||||
return (x >= other.x) && (y >= other.y) ? true : false;
|
||||
}
|
||||
@@ -346,9 +351,8 @@ template<> struct TBox<TVec2<f32> > {
|
||||
addPos(TVec2<f32>(x, y));
|
||||
}
|
||||
|
||||
void setSize(TVec2<f32> size) {
|
||||
f.x = size.x;
|
||||
f.y = size.y;
|
||||
void setSize(const TVec2<f32>& size) {
|
||||
f.add(i, size);
|
||||
}
|
||||
|
||||
void addPos(const TVec2<f32>& pos) {
|
||||
|
||||
Reference in New Issue
Block a user