UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Submit Patch #4561 Fix to inventory bug (battlescape)
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "Not determined".
Issue basics
  • Type of issue
    Submit Patch
  • Category
    General
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    3. Normal
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
Issue details
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/patches/434 Item 434] imported from sourceforge.net tracker on 2013-01-28 20:39:33

Currently, when someone dies, the items are dropped to the floor in G_InventoryToFloor() on the server side. The client and the server behave differently, and that causes a problem. The server adds each item separately (at a different x,y), whereas the client summarizes items, and puts them in the same location. Cause: if an actor dies and drops, e.g. two clips, and an actor tries to pick up both (by drag-n-drop) the server crashes because it cannot find the second at that location.
Fix: use Com_AddToInventory() in G_InventoryToFloor() to add items to the floor, instead of linking them manually. That takes care of the summarization, and also keeps a more uniform interface of changing the floor.
===== Comments Ported from Sourceforge =====

====== polyvios (2009-08-30 10:38:41) ======

Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif