Warning: ob_start(): function 'compress_handler' not found or invalid function name in /www/htdocs/xfmantis/core.php on line 18
0000622: Gürtel mit beladung ins Lager - Mantis
Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000622 [X-Force] Einheiten (Soldat, Alien, etc) feature always 13.09.04 15:53 19.11.09 03:00
Reporter Unrealer View Status public  
Assigned To Natter
Priority high Resolution fixed  
Status closed   Product Version V0.845
Summary 0000622: Gürtel mit beladung ins Lager
Description Wenn man einen vollen Gürtel an einen anderen Soldaten weitergibt oder ins Lager legt, sollten die daran befestigten Gegenstände mit übertragen werden und nicht in den Rucksack "fallen".
Additional Information
Attached Files

- Relationships

- Notes
(0004292)
gnfalex
18.10.09 18:35

Greetings.
Try to solve.
Algorithm - if belt was sent to base, then before belt nillifing all item from it also sent to base.

diff -w -B -u old\DXSoldatConfig.pas new\DXSoldatConfig.pas
--- old\DXSoldatConfig.pas Thu Aug 20 14:56:56 2009
+++ new\DXSoldatConfig.pas Sat Oct 17 15:59:24 2009
@@ -1337,6 +1338,7 @@
 
   FromItem : TLagerItem;
   ToItem : TLagerItem;
+ Dummy : Integer;
 
   function FindMunForIDinSlot(ID: Cardinal;
     SlotType: TSoldatConfigSlot; var Slot: TItemSlot): boolean;
@@ -1625,7 +1627,17 @@
   case FromSlot.Slot of
     scsBasisItem..scsBodenItem : DeleteFromSlot(FromSlot);
     scsLinkeHand..scsPanzerung,
- scsGuertel : fManager.SetzeAusruestung(FromSlot.Slot,0);
+ scsGuertel :
+ begin
+ if (ToSlot.Slot in [scsBasisItem,scsSchiffItem,scsBodenItem]) then
+ for dummy:= FromSlot.SlotID+1 to high(fItemSlots) do
+ begin
+ if (fItemSlots[dummy].Slot=scsMunition) and (fItemSlots[dummy].ID<>0) then
+ setslot(fItemSlots[dummy],ToSlot)
+ else break; // don't sure. Work as with that, as without it, but I preffer to add
+ end;
+ fManager.SetzeAusruestung(FromSlot.Slot,0);
+ end;
     scsRucksack :
     begin
       fManager.DeleteFromRucksack(FromSlot.Data);


Best regards
 
(0004293)
Natter
18.10.09 19:16

Mit kleiner Änderung (else if (fItemSlots[dummy].ID<>0) then break;) umgesetzt.
 

- Issue History
Date Modified Username Field Change
13.09.04 15:53 Unrealer New Issue
28.09.04 06:43 Jim_Raynor Status new => acknowledged
29.03.05 00:50 Jim_Raynor Relationship added parent of 0000828
26.05.05 17:38 Jim_Raynor Relationship deleted parent of 0000828
11.09.06 21:45 Natter Priority normal => high
18.10.09 18:35 gnfalex Note Added: 0004292
18.10.09 19:16 Natter Status acknowledged => resolved
18.10.09 19:16 Natter Fixed in Version  => V0.917a01
18.10.09 19:16 Natter Resolution open => fixed
18.10.09 19:16 Natter Assigned To  => Natter
18.10.09 19:16 Natter Note Added: 0004293
19.11.09 03:00 Gast Status resolved => closed


Mantis 1.0.7[^]
Copyright © 2000 - 2007 Mantis Group
Powered by Mantis Bugtracker