summaryrefslogtreecommitdiff
blob: b429bac676d3c00dc838ac731a32905c1dda8c86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
Make sure we type the cast properly.

http://bugs.gentoo.org/show_bug.cgi?id=63773

Pingus uses assert() but never includes assert.h, boo !

http://bugs.gentoo.org/show_bug.cgi?id=28281

--- pingus-0.6.0/src/story_screen.cxx
+++ pingus-0.6.0/src/story_screen.cxx
@@ -142,7 +142,7 @@
 
   if (!page_displayed_completly)
     {
-      unsigned int len = static_cast<unsigned int>(20.0f * time_passed);
+      size_t len = static_cast<size_t>(20.0f * time_passed);
       display_text = current_page.text.substr(0, Math::min(current_page.text.length(), len));
 
       if (current_page.text.length() < len)
--- pingus-0.6.0/src/blitter.cxx
+++ pingus-0.6.0/src/blitter.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include <assert.h>
 #include <config.h>
 #include <stdio.h>
 #include "pingus_error.hxx"
--- pingus-0.6.0/src/col_map.cxx
+++ pingus-0.6.0/src/col_map.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include <assert.h>
 #include <iostream>
 #include <ClanLib/Display/SurfaceProviders/canvas.h>
 #include "gui/graphic_context.hxx"
--- pingus-0.6.0/src/console.cxx
+++ pingus-0.6.0/src/console.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include <assert.h>
 #include <config.h>
 #include <ClanLib/Display/Display/display.h>
 #include <ClanLib/Display/Font/font.h>
--- pingus-0.6.0/src/demo_recorder.cxx
+++ pingus-0.6.0/src/demo_recorder.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include <assert.h>
 #include <time.h>
 #include <iostream>
 #include "system.hxx"
--- pingus-0.6.0/src/editor/generic_property_frame.cxx
+++ pingus-0.6.0/src/editor/generic_property_frame.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include <assert.h>
 #include <iostream>
 #include <ClanLib/GUI/label.h>
 #include <ClanLib/GUI/inputbox.h>
--- pingus-0.6.0/src/gui/root_gui_manager.cxx
+++ pingus-0.6.0/src/gui/root_gui_manager.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include <assert.h>
 #include "root_gui_manager.hxx"
 #include "../input/controller.hxx"
 
--- pingus-0.6.0/src/pingu_holder.cxx
+++ pingus-0.6.0/src/pingu_holder.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include <assert.h>
 #include <iostream>
 #include "pingu_holder.hxx"
 #include "pingu.hxx"
--- pingus-0.6.0/src/savegame_manager.cxx
+++ pingus-0.6.0/src/savegame_manager.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include <assert.h>
 #include <iostream>
 #include <fstream>
 #include "system.hxx"
--- pingus-0.6.0/src/worldmap/dot.cxx
+++ pingus-0.6.0/src/worldmap/dot.cxx
@@ -17,6 +17,7 @@
 //  along with this program; if not, write to the Free Software
 //  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 
+#include <assert.h>
 #include <iostream>
 #include "../xml_file_reader.hxx"
 #include "dot.hxx"
--- pingus-0.6.0/src/worldmap/graph.hxx
+++ pingus-0.6.0/src/worldmap/graph.hxx
@@ -20,6 +20,8 @@
 #ifndef HEADER_GRAPH_HXX
 #define HEADER_GRAPH_HXX
 
+#include <assert.h>
 #include <algorithm>
 #include <vector>
+#include <iostream>
 
diff -ur pingus-0.6.0-orig/src/worldmap/sprite_drawable.hxx pingus-0.6.0/src/worldmap/sprite_drawable.hxx
--- pingus-0.6.0-orig/src/worldmap/sprite_drawable.hxx	2005-09-11 21:46:11.000000000 -0400
+++ pingus-0.6.0/src/worldmap/sprite_drawable.hxx	2005-09-11 21:49:46.000000000 -0400
@@ -46,7 +46,7 @@
 
 private:
   SpriteDrawable (const SpriteDrawable&);
-  SpriteDrawable operator= (const SpriteDrawable&);
+  SpriteDrawable& operator= (const SpriteDrawable&);
 };
 
 } // namespace WorldMapNS