func_door: Save m_waterType

This commit is contained in:
Marco Cawthorne 2023-10-03 10:56:05 -07:00
parent 6f2115c45f
commit 7d69ab96fc
Signed by: eukara
GPG key ID: CE2032F0A2882A22
2 changed files with 9 additions and 2 deletions

View file

@ -131,6 +131,8 @@ func_door::func_door(void)
m_strSndClose =
m_strSndMove =
m_strSndStop = __NULL__;
m_waterType = 0i;
}
void
@ -155,6 +157,7 @@ func_door::Save(float handle)
SaveString(handle, "m_strSndStop", m_strSndStop);
SaveString(handle, "m_strSndMove", m_strSndMove);
SaveString(handle, "targetClose", targetClose);
SaveInt(handle, "m_waterType", m_waterType);
}
void
@ -208,6 +211,10 @@ func_door::Restore(string strKey, string strValue)
case "targetClose":
targetClose = ReadString(strValue);
break;
case "m_waterType":
m_waterType = ReadInt(strValue);
break;
default:
super::Restore(strKey, strValue);
}

View file

@ -52,12 +52,12 @@ Util_TimeToString(float fTime)
}
/* returns whether or not the mode we're playing is a team game */
int
bool
Util_IsTeamplay(void)
{
#ifdef SERVER
return g_grMode.IsTeamplay();
#else
return (serverkeyfloat("teams") > 0) ? TRUE : FALSE;
return (serverkeyfloat("teams") > 0) ? (true) : (false);
#endif
}