mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Fix: food items from enemies or in a map spawn as fresh
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5424 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1330,6 +1330,12 @@ OBJECTTYPE& OBJECTTYPE::operator=(const OLD_OBJECTTYPE_101& src)
|
||||
(*this)[0]->data.fUsed = src.fUsed; // flags for whether the item is used or not
|
||||
(*this)[0]->data.bTemperature = 0.0;
|
||||
|
||||
// Flugente: the temperature variable determines the quality of the food, begin with being fresh
|
||||
if ( Item[this->usItem].foodtype > 0 )
|
||||
{
|
||||
(*this)[0]->data.bTemperature = OVERHEATING_MAX_TEMPERATURE;
|
||||
}
|
||||
|
||||
if(src.usItem == OWNERSHIP)//dnl ch29 120909
|
||||
{
|
||||
(*this)[0]->data.owner.ubOwnerProfile = src.ugYucky.ubOwnerProfile;
|
||||
@@ -1360,6 +1366,12 @@ OBJECTTYPE& OBJECTTYPE::operator=(const OLD_OBJECTTYPE_101& src)
|
||||
(*this)[x]->data.ubImprintID = src.ubImprintID; // ID of merc that item is imprinted on
|
||||
(*this)[x]->data.fUsed = src.fUsed; // flags for whether the item is used or not
|
||||
(*this)[x]->data.bTemperature = 0.0;
|
||||
|
||||
// Flugente: the temperature variable determines the quality of the food, begin with being fresh
|
||||
if ( Item[this->usItem].foodtype > 0 )
|
||||
{
|
||||
(*this)[x]->data.bTemperature = OVERHEATING_MAX_TEMPERATURE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user