File: fixes.patch

package info (click to toggle)
mu-cade 0.11.dfsg1-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid
  • size: 7,596 kB
  • sloc: xml: 403; makefile: 28
file content (83 lines) | stat: -rw-r--r-- 3,056 bytes parent folder | download | duplicates (3)
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
# Copyright (C) 2007  Marcel Unbehaun <frostworks@gmx.de>
# Distributed under the same license as the game. See debian/copyright.

--- a/src/abagames/mcd/barrage.d
+++ b/src/abagames/mcd/barrage.d
@@ -62,7 +62,8 @@
 
   public static void load() {
     char[][] dirs = listdir(BARRAGE_DIR_NAME);
-    foreach (char[] dirName; dirs) {
+    foreach (char[] dirName; dirs) {
+      parser[dirName] = null;
       char[][] files = listdir(BARRAGE_DIR_NAME ~ "/" ~ dirName);
       foreach (char[] fileName; files) {
         if (getExt(fileName) != "xml")
--- a/src/abagames/mcd/shape.d
+++ b/src/abagames/mcd/shape.d
@@ -34,7 +34,7 @@
   }
 
   public void setMass(OdeActor oa, Vector3 sizeScale = null, float massScale = 1) {
-    dMass m;
+    dMass m = void;
     dMassSetZero(&m);
     addMass(&m, sizeScale, massScale);
     oa.setMass(m);
@@ -87,7 +87,7 @@
   }
 
   public void addMass(dMass* m, Vector3 sizeScale = null, float massScale = 1) {
-    dMass sm;
+    dMass sm = void;
     if (sizeScale) {
       dMassSetBox(&sm, 1, size.x * sizeScale.x, size.y * sizeScale.y, size.z * sizeScale.z);
       dMassTranslate(&sm, pos.x * sizeScale.x, pos.y * sizeScale.y, pos.z * sizeScale.z);
@@ -436,7 +436,7 @@
 
   public void beginRecord() {
     posIdx = 0;
-    glGetFloatv(GL_MODELVIEW_MATRIX, m);
+    glGetFloatv(GL_MODELVIEW_MATRIX, m.ptr);
   }
 
   public void setPos(Vector3 p) {
--- a/src/abagames/mcd/ship.d
+++ b/src/abagames/mcd/ship.d
@@ -520,7 +520,7 @@
   Ship ship;
   ParticlePool particles;
   ConnectedParticlePool connectedParticles;
-  dMass m;
+  dMass m = void;
   Shape shape;
   LinePoint linePoint;
   dJointID joint;
--- a/src/abagames/util/sdl/texture.d
+++ b/src/abagames/util/sdl/texture.d
@@ -103,13 +103,13 @@
         }
         glBindTexture(GL_TEXTURE_2D, num + ti);
         gluBuild2DMipmaps(GL_TEXTURE_2D, 4, panelWidth, panelHeight,
-                          GL_RGBA, GL_UNSIGNED_BYTE, pixels);
+                          GL_RGBA, GL_UNSIGNED_BYTE, pixels.ptr);
         glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR_MIPMAP_NEAREST);
         glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
         if (maskColor != 0xffffffffu) {
           glBindTexture(GL_TEXTURE_2D, maskNum + ti);
           gluBuild2DMipmaps(GL_TEXTURE_2D, 4, panelWidth, panelHeight,
-                            GL_RGBA, GL_UNSIGNED_BYTE, maskPixels);
+                            GL_RGBA, GL_UNSIGNED_BYTE, maskPixels.ptr);
           glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR_MIPMAP_NEAREST);
           glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
         }
--- a/src/abagames/util/sdl/twinstickpad.d
+++ b/src/abagames/util/sdl/twinstickpad.d
@@ -9,6 +9,7 @@
 private import std.stream;
 private import std.math;
 private import SDL;
+private import SDL_keyboard;
 private import abagames.util.vector;
 private import abagames.util.sdl.input;
 private import abagames.util.sdl.recordableinput;