]> git.pld-linux.org Git - packages/KoboDeluxe.git/blobdiff - nostd_pipe2.patch
- added gcc44.patch and nostd_pipe2.patch
[packages/KoboDeluxe.git] / nostd_pipe2.patch
diff --git a/nostd_pipe2.patch b/nostd_pipe2.patch
new file mode 100644 (file)
index 0000000..ca9f5a4
--- /dev/null
@@ -0,0 +1,62 @@
+--- KoboDeluxe-0.5.1/enemies.h.orig    2010-05-24 18:53:21.647803692 +0200
++++ KoboDeluxe-0.5.1/enemies.h 2010-05-24 18:54:37.847056344 +0200
+@@ -72,7 +72,7 @@ extern const enemy_kind bombdeto;
+ extern const enemy_kind cannon;
+ extern const enemy_kind pipe1;
+ extern const enemy_kind core;
+-extern const enemy_kind pipe2;
++extern const enemy_kind kobo_pipe2;
+ extern const enemy_kind rock;
+ extern const enemy_kind ring;
+ extern const enemy_kind enemy_m1;
+@@ -430,7 +430,7 @@ inline int _enemy::realize()
+ inline int _enemy::is_pipe()
+ {
+-      return ((_state != notuse) && ((ek == &pipe1) || (ek == &pipe2)));
++      return ((_state != notuse) && ((ek == &pipe1) || (ek == &kobo_pipe2)));
+ }
+--- KoboDeluxe-0.5.1/enemy.cpp.orig    2010-05-24 19:04:08.577739047 +0200
++++ KoboDeluxe-0.5.1/enemy.cpp 2010-05-24 19:04:48.070235366 +0200
+@@ -755,10 +755,10 @@ void _enemy::move_core()
+ void _enemy::kill_core()
+ {
+-      enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 3);
+-      enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 7);
+-      enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 1);
+-      enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 5);
++      enemies.make(&kobo_pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 3);
++      enemies.make(&kobo_pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 7);
++      enemies.make(&kobo_pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 1);
++      enemies.make(&kobo_pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 5);
+       enemies.make(&explosion4, CS2PIXEL(x), CS2PIXEL(y));
+       sound.g_base_core_explo(x, y);
+       release();
+@@ -978,19 +978,19 @@ void _enemy::move_pipe2()
+       }
+       p ^= a;
+       if(p & U_MASK)
+-              enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 1);
++              enemies.make(&kobo_pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 1);
+       if(p & R_MASK)
+-              enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 3);
++              enemies.make(&kobo_pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 3);
+       if(p & D_MASK)
+-              enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 5);
++              enemies.make(&kobo_pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 5);
+       if(p & L_MASK)
+-              enemies.make(&pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 7);
++              enemies.make(&kobo_pipe2, CS2PIXEL(x), CS2PIXEL(y), 0, 0, 7);
+       manage.add_score(10);
+       release();
+ }
+-const enemy_kind pipe2 = {
++const enemy_kind kobo_pipe2 = {
+       0,
+       &_enemy::make_pipe2,
+       &_enemy::move_pipe2,
This page took 0.071493 seconds and 4 git commands to generate.