mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
Press [\] to break window glass with crowbar or any two-handed weapon. Weapon can be damaged in the process.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9368 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2959,6 +2959,20 @@ void GetKeyboardInput( UINT32 *puiNewEvent )
|
||||
}
|
||||
break;
|
||||
|
||||
case '\\':
|
||||
if (gusSelectedSoldier != NOBODY)
|
||||
{
|
||||
SOLDIERTYPE *pSoldier;
|
||||
if (GetSoldier(&pSoldier, gusSelectedSoldier))
|
||||
{
|
||||
if (pSoldier->CanBreakWindow() && EnoughPoints(pSoldier, GetAPsToBreakWindow(pSoldier, TRUE), BP_USE_CROWBAR, TRUE))
|
||||
pSoldier->BreakWindow();
|
||||
//else if (pSoldier->CanStartDrag())
|
||||
//pSoldier->StartDrag();
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
#if 0//dnl ch75 021113
|
||||
case '\"':
|
||||
Testing(1);
|
||||
|
||||
Reference in New Issue
Block a user