fixed a logic error in ExtendMapTimeLimit()
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401486
This commit is contained in:
		
							parent
							
								
									17b7f4c68d
								
							
						
					
					
						commit
						c84a3cf8e9
					
				| @ -96,14 +96,14 @@ public: | ||||
| 
 | ||||
| 	void ExtendMapTimeLimit(int extra_time) | ||||
| 	{ | ||||
| 		extra_time /= 60; | ||||
| 
 | ||||
| 		if (extra_time == 0) | ||||
| 		{ | ||||
| 			mp_timelimit->SetValue(0); | ||||
| 			return; | ||||
| 		} | ||||
| 
 | ||||
| 		extra_time /= 60; | ||||
| 
 | ||||
| 		mp_timelimit->SetValue(mp_timelimit->GetInt() + extra_time); | ||||
| 	} | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user