changeset 56:d578f3f3b0a6

*** empty log message ***
author gongo
date Wed, 08 Nov 2006 12:15:55 +0000
parents 8cef655f3bf9
children dfe6a2fb031a
files Makefile linda.c
diffstat 2 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Wed Nov 08 08:14:39 2006 +0000
+++ b/Makefile	Wed Nov 08 12:15:55 2006 +0000
@@ -14,7 +14,7 @@
 -I/usr/local/include/ps2util \
 -I./Linda
 
-DEFINES = -DDEBUG #-DLINDA
+DEFINES = -DDEBUG -DLINDA
 DEBUGFLAGS = -Wall -g
 LIBPS2ARC = /usr/local/lib/libps2a.a
 
--- a/linda.c	Wed Nov 08 08:14:39 2006 +0000
+++ b/linda.c	Wed Nov 08 12:15:55 2006 +0000
@@ -93,8 +93,9 @@
 	if (mode)   *mode   = get_header(pkt, PKT_MODE_OFFSET);
 	if (car)    *car    = get_header(pkt, PKT_CARID_OFFSET);
 	if (course) *course = get_header(pkt, PKT_COURSEID_OFFSET);
-	if (data)   data    = pkt+PKT_DATA_OFFSET;
-
+	if (data)
+	    memcpy(data, pkt+PKT_DATA_OFFSET, sizeof(FMATRIX));
+	
 	psx_free(reply);
 	linda_seq[id] = psx_rd(id);
     }    
@@ -370,7 +371,7 @@
 
     ps2_vu0_unit_matrix(po);
     
-    get_packet(PLAYER_1P, NULL, &mode, NULL, NULL, (char*)&po);
+    get_packet(PLAYER_1P, NULL, &mode, NULL, NULL, (char*)po);
 
     if (mode == MODE_MAIN) {
 	ps2_vu0_copy_matrix(game.jiki->body->transfer, po);