Update of /cvsroot/netrek/client/netrekxp/src
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv15652/src

Modified Files:
        socket.c 
Log Message:
Fix bug in handle shipcap, p_ship was not being properly set,
causing errors in dashboard display of ship cap values.

Index: socket.c
===================================================================
RCS file: /cvsroot/netrek/client/netrekxp/src/socket.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- socket.c    15 Mar 2009 12:16:43 -0000      1.55
+++ socket.c    20 Mar 2009 03:37:09 -0000      1.56
@@ -2766,10 +2766,11 @@
            temp->ship->s_desig[1] = packet->s_desig2;
            temp->ship->s_bitmap = ntohs(packet->s_bitmap);
            //buildShipKeymap(temp->ship);
-           myship = getship (myship->s_type);
-            redrawTstats (); /* Redraw dashboard */
-            calibrate_stats (); /* Redefine colored statwin sliders */
-            redrawStats ();  /* Redraw statwin */
+           me->p_ship = *getship (myship->s_type);
+           myship = &(me->p_ship);
+           redrawTstats (); /* Redraw dashboard */
+           calibrate_stats (); /* Redefine colored statwin sliders */
+           redrawStats ();  /* Redraw statwin */
            return;
        }
        temp = temp->next;
@@ -2804,7 +2805,8 @@
     temp->ship->s_desig[0] = packet->s_desig1;
     temp->ship->s_desig[1] = packet->s_desig2;
     temp->ship->s_bitmap = ntohs(packet->s_bitmap);
-    myship = getship (myship->s_type);
+    me->p_ship = *getship (myship->s_type);
+    myship = &(me->p_ship);
     redrawTstats (); /* Redraw dashboard */
     calibrate_stats (); /* Redefine colored statwin sliders */
     redrawStats ();  /* Redraw statwin */


_______________________________________________
netrek-cvs mailing list
[email protected]
http://mailman.us.netrek.org/mailman/listinfo/netrek-cvs

Reply via email to