C0deH4cker / SimpleGameEngine

Simple C++ game engine influenced by XNA
MIT License
43 stars 10 forks source link

Vector2 `+=` typo #6

Open vittorioromeo opened 10 years ago

vittorioromeo commented 10 years ago
Vector2& Vector2::operator+=(float amount) {
    x += amount;
    x += amount; // whoops.
    return *this;
}
C0deH4cker commented 10 years ago

Thanks for spotting this! This will be fixed in a major sweeping change making SGE more "C++ish" overall (probably will be pushed in the next day or two).

On May 7, 2014, at 2:27 AM, Vittorio Romeo notifications@github.com wrote:

Vector2& Vector2::operator+=(float amount) { x += amount; x += amount; // whoops. return *this; } — Reply to this email directly or view it on GitHub.

C0deH4cker commented 8 years ago

Apparently I closed this once I fixed it locally even though it never got pushed. Reopening as a reminder to finish my changes and push them.