openbsd-ports/games/numptyphysics/patches/patch-Overlay_cpp
sthen b977e4e00b Various patches to improve the game engine and allow all the npcomplete
levels to work. Some from Erik Hovland via the numptyphysics bug tracker,
some from David Coppa. Port diff from David Coppa (maintainer).
2009-10-22 23:07:54 +00:00

23 lines
716 B
Plaintext

$OpenBSD: patch-Overlay_cpp,v 1.1 2009/10/22 23:07:54 sthen Exp $
--- Overlay.cpp.orig Thu Nov 6 14:44:45 2008
+++ Overlay.cpp Thu Oct 15 14:49:47 2009
@@ -31,6 +31,10 @@ class OverlayBase : public Overlay (public)
: m_game(game),
m_x(x), m_y(y),
m_canvas(NULL),
+ m_orgx(0),
+ m_orgy(0),
+ m_prevx(0),
+ m_prevy(0),
m_isDirty(true),
m_dragging(false),
m_dragging_allowed(dragging_allowed),
@@ -176,6 +180,7 @@ class NextLevelOverlay : public IconOverlay (public)
: IconOverlay(game,"next.png",
FULLSCREEN_RECT.centroid().x-200,
FULLSCREEN_RECT.centroid().y-120),
+ m_selectedLevel(0),
m_levelIcon(-2),
m_icon(NULL)
{