View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0000777 | VCMI | Mechanics - Adventure Map | public | 2011-07-26 20:53 | 2014-05-30 17:40 |
|
Reporter | exine | |
Assigned To | Warmonger | |
Priority | low | Severity | text | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | any | OS | any | OS Version | any |
Product Version | 0.85 | |
Target Version | | Fixed in Version | 0.86 | |
|
Summary | 0000777: Cheat vcmiainur actually gives 10 archangels in each slot instead of 5 |
Description | I was just peeking around at code and saw that. It's not a bug really, only regression between documentation and code comparable to translation error, but indeed confused me - after reading that code I thought that third parameter was something other than count. |
Tags | No-harm enhancement, patch-included |
|
Attached Files | bug777.patch [^] (628 bytes) 2011-07-26 21:00 [Show Content] [Hide Content]# HG changeset patch
# User exine <[email protected]>
# Date 1311713908 -7200
# Node ID 0c541980f46d43e26de69389a2d8331ea3210f82
# Parent fd95253a626ec51d1dfe15d709971698f256aafb
Correct vcmiainur cheat
diff --git a/server/CGameHandler.cpp b/server/CGameHandler.cpp
--- a/server/CGameHandler.cpp
+++ b/server/CGameHandler.cpp
@@ -3319,7 +3319,7 @@
for(int i = 0; i < ARMY_SIZE; i++)
if(!hero->hasStackAtSlot(i))
- insertNewStack(StackLocation(hero, i), archangel, 10);
+ insertNewStack(StackLocation(hero, i), archangel, 5);
}
else if(message == "vcmiangband") //gives 10 black knight into each slot
{
|
|