mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
dirt system: added an option that controls wether a gun also gets cleaned on fully repairing it
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5904 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -3935,7 +3935,7 @@ BOOLEAN RepairObject( SOLDIERTYPE * pSoldier, SOLDIERTYPE * pOwner, OBJECTTYPE *
|
||||
if ( (*pObj)[ubLoop]->data.objectStatus == threshold )
|
||||
{
|
||||
// if item was fully repaired, consider it cleaned
|
||||
if ( gGameExternalOptions.fDirtSystem )
|
||||
if ( gGameExternalOptions.fDirtSystem && gGameExternalOptions.fFullRepairCleansGun )
|
||||
(*pObj)[ubLoop]->data.bDirtLevel = 0.0f;
|
||||
}
|
||||
// note: this system is bad if we can repair only 1% per hour (which is rather we are total losers)
|
||||
|
||||
Reference in New Issue
Block a user