Menu

Commit [r710]  Maximize  Restore  History

Added a getloot() function to the Location class in locations.cpp and used it every time a squad or location's loot is all transferred to a location. This function checks to see if an item is money, and if so, deals with it properly. This should fix the bug with money ending up in inventories at locations. The code for this new getloot() function came from how cleangonesquads() in commonactions.cpp dealt with transferring items to a location and taking care of money.

yetisyny 2013-08-14

changed /trunk/src/basemode/reviewmode.cpp
changed /trunk/src/common/commonactions.cpp
changed /trunk/src/daily/daily.cpp
changed /trunk/src/daily/siege.cpp
changed /trunk/src/locations/locations.cpp
changed /trunk/src/locations/locations.h
changed /trunk/src/sitemode/talk.cpp
changed /trunk/workspaces/Debug/crimesquad.exe
changed /trunk/workspaces/Release/crimesquad.exe
/trunk/src/basemode/reviewmode.cpp Diff Switch to side-by-side view
Loading...
/trunk/src/common/commonactions.cpp Diff Switch to side-by-side view
Loading...
/trunk/src/daily/daily.cpp Diff Switch to side-by-side view
Loading...
/trunk/src/daily/siege.cpp Diff Switch to side-by-side view
Loading...
/trunk/src/locations/locations.cpp Diff Switch to side-by-side view
Loading...
/trunk/src/locations/locations.h Diff Switch to side-by-side view
Loading...
/trunk/src/sitemode/talk.cpp Diff Switch to side-by-side view
Loading...
/trunk/workspaces/Debug/crimesquad.exe
Binary file was changed.
/trunk/workspaces/Release/crimesquad.exe
Binary file was changed.