mirror of
https://github.com/PhantomGamesDevelopment/TWM2.git
synced 2026-02-24 09:03:46 +00:00
Syntax Error Fixing
Fixed all of the syntax errors in the current version of the mod. * NOTE: You can now run a server on this current version although some of the zombie features are non-functional at the moment.
This commit is contained in:
parent
00e88cd9ea
commit
34dc29b805
9 changed files with 47 additions and 28 deletions
|
|
@ -73,8 +73,8 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %
|
|||
// if not a valid vote, turn back.
|
||||
//Phantom139: Spring Cleaning... TWM2 3.9.2
|
||||
// Old format: if( $VoteMessage[ %typeName ] $= "" && %typeName !$= "VoteOnlyOwnerCascade" )
|
||||
if($VoteMessage[%typeName $= "") {
|
||||
switch$(%typeName):
|
||||
if($VoteMessage[%typeName] $= "") {
|
||||
switch$(%typeName) {
|
||||
case "VoteTeamDamage" or "VoteHoardMode" or "VoteGreedMode" or "VotePurebuild" or "VoteLivingWorldMode"
|
||||
or "VoteCascadeMode" or "VoteExpertMode" or "VoteVehicles" or "VoteSatchelCharge" or "VoteOnlyOwnerDeconstruct"
|
||||
or "VoteOnlyOwnerCascade" or "VoteOnlyOwnerRotate" or "VoteOnlyOwnerCubicReplace" or "VoteRemoveDeployables"
|
||||
|
|
@ -84,6 +84,7 @@ function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %
|
|||
// Looks like we missed a message, but the type is ok, allow pass.
|
||||
default:
|
||||
%typePass = false;
|
||||
}
|
||||
}
|
||||
// End JTL
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue