cybermind
637de00822
[-] Fixed bug which didn't allow client to join into game
...
(note: I'm not highly knowledgable in network protocol programming, but looks like stratagus tries to connect on localhost instrad of address specified in join window)
2013-07-20 16:46:55 +06:00
Pali Rohár
752c9f77b2
winapi attachconsole.cpp: Use macro _WIN32_WINNT_WIN2K instead hardcoded constant 0x0500
2013-07-12 14:15:17 +02:00
Pali Rohár
278ec0e474
Fix compile error: include math.h for function floor()
...
src/video/sdl.cpp:827:91: error: ‘floor’ was not declared in this scope
2013-07-12 14:10:56 +02:00
joris
bb21f79cba
Use min/max/clamp.
2013-07-12 09:27:41 +02:00
joris
e73524d87d
Fix gcc warnings about mixing && ||
2013-07-05 10:59:22 +02:00
joris
486c887c62
use std::min, std::max
2013-07-02 11:57:07 +02:00
Tim Felgentreff
180de1f00d
allow distance rules to specify owner of units
2013-06-05 11:38:12 +02:00
Tim Felgentreff
0a6739b153
fix crash that occurs with some compilers when vector capacity isn't initialized
2013-05-30 14:04:33 +02:00
Tim Felgentreff
ab324f9adb
feature: allow buildings to spawn buildings within their repair range
2013-05-30 14:02:59 +02:00
Tim Felgentreff
9dd2c82db7
merge lp:~timfelgentreff/stratagus/ButtonCheckUnitsNot
2013-05-30 08:47:54 +02:00
joris
31543a7c99
Clean up:
...
- Use std::min/max.
- remove useless test: delete null ptr is safe.
2013-05-27 14:02:36 +02:00
Tim Felgentreff
921c298c9c
add a button check to disable a button when a unit is available
2013-05-23 01:23:25 +02:00
Tim Felgentreff
a4760fca73
buildings can build buildings if they are within repair range
2013-05-23 00:37:52 +02:00
Tim Felgentreff
a7e147a480
merge lp:stratagus
2013-05-21 21:05:22 +02:00
joris
e64b56d0fb
Fix chopping wood. (Bug introduced by rev.8737).
...
Fix unitTest.
2013-05-19 18:15:00 +02:00
joris
2b3dacf61d
Replace condition by std::max.
...
remove useless condition
2013-05-15 09:43:09 +02:00
cybermind
c6366e3815
[+] Added ability to join into AI force for spell-capture
...
[*] Flags for CAnimation_SpawnUnit are optional
[*] Joining to AI force is now optional
2013-05-13 16:40:09 +06:00
cybermind
13ffa1d0b3
[+] Added CUnit flag Summoned to mark units which are summoned by spells
...
[*] Summoned units don't bother AI when attacked and join into AI attack forces to help in attack wave
[*] Some animation code clean-up
2013-05-12 21:09:02 +06:00
cybermind
a5d5580115
[*] Limit the count of AI forces available through Lua functions to 25.
...
The forces from 25 to 49 are used to hold attacking forces.
This fixes a situation when user couldn't use forces with bigger indexes because they were used to hold attacking force
2013-05-12 18:17:20 +06:00
cybermind
71f78c119e
[-] Fix crash when resource unit is destroyed
2013-05-12 18:12:43 +06:00
cybermind
a126ed9962
[+] Add CPreference::PauseOnLeave parameter to control the game pause when the window is inactive
2013-05-12 18:11:08 +06:00
cybermind
e6d1b09470
[*] Check button-specific allow conditions when Allowed field is filled with user condition
2013-05-12 14:32:57 +06:00
cybermind
aae9643d4a
[-] Fixed bug when research don't modify the stats of non-ready buildings
2013-05-12 14:30:06 +06:00
cybermind
92d8da8469
[-] Fixed bug when player loses resources if he stops resource-using action (upgrade-to, research etc)
2013-05-12 14:27:20 +06:00
cybermind
e0542ff0e1
[-] Fixed action freeze when speeds are lower than 100
2013-05-12 14:24:45 +06:00
cybermind
70d2627204
[+] Added CAnimation_SetVar changes into CAnimation_SetPlayerVar
2013-05-10 23:21:37 +06:00
cybermind
fbd6c30113
[+] Added AND, OR, XOR and NOT operators in CAnimation_SetVar
...
[+] Added string aliases for operators
2013-05-10 22:29:43 +06:00
cybermind
9cbf372306
[+] Added CclDefineSpell parameter "force-use-animation" to use animation code for "self" targeted spells (enables to use spells as some type of commands promted through button panel)
2013-05-10 22:16:08 +06:00
Tim Felgentreff
cc719afc03
shrink actual capacity of vector to fit when starting new game
2013-05-10 15:16:48 +02:00
joris
cb88d6b3f7
Fix compilation with gcc
2013-05-10 15:08:16 +02:00
Tim Felgentreff
dc9f3e7485
merge lp:~timfelgentreff/stratagus/timfelgentreff-zoomeable-view
2013-05-10 09:16:26 +02:00
cybermind
2fa0216c2f
[+] Added CAnimation_LuaCallback which allows user to call lua functions from animations.
...
Usage: "lua-callback func_name arg1 [argN ...]"
2013-05-09 22:32:37 +06:00
cybermind
a63a4fff61
[+] Added drawlevel sorting for particles
2013-05-09 11:07:50 +06:00
cybermind
b9fb1bfd1b
[-] Spell_Teleport uses standard method for mana subtraction
2013-05-08 18:17:28 +06:00
cybermind
c25f13d6d4
[+] Added CUnitType::TeleportCost and CUnitType::TeleportEffect to customize portals
2013-05-08 18:10:35 +06:00
joris
da22b538d9
Fix clang warnings
2013-05-06 20:18:00 +02:00
cybermind
f7a5a173f7
[-] Fixed life bar drawing bug for extremly low values
2013-05-05 11:45:42 +06:00
cybermind
2901ead35c
[+] Added OnInit lua callback for CUnitType to initialize unit variables after creation
2013-05-04 19:45:27 +06:00
Tim Felgentreff
1f83197c56
print error message to stderr, not stdout
2013-05-01 18:41:37 +02:00
Tim Felgentreff
727ed53949
Only show -Z option in help text if compiled with OpenGL(ES) and make certain that -Z only works with OpenGL enabled
2013-05-01 18:37:39 +02:00
Tim Felgentreff
dae3545a7b
always translate mouse coordinates if we are zoomed
2013-05-01 13:56:24 +02:00
Tim Felgentreff
8ed21f7b44
use Viewport dimensions for video when using OpenGL
2013-05-01 12:42:41 +02:00
Tim Felgentreff
b137d90835
merge lp:stratagus
2013-04-30 20:36:53 +02:00
joris
e82dd1e975
Fix gcc warnings.
...
Fix Assert and DebugPrint macros.
2013-04-30 16:37:18 +02:00
cybermind
9c7004c8cc
[*] Spawn-portal spell improvement
2013-04-30 19:34:46 +06:00
cybermind
7383712a0d
[-] Fixed compilation for metaserver and in release mode
2013-04-30 17:33:12 +06:00
cybermind
b45c081b0b
[+] Added information in help for new command line parameters
2013-04-29 19:31:19 +06:00
cybermind
9c15e7939b
[+] Allow user to dump unit info in log using "-i" command line parameter
2013-04-29 19:22:59 +06:00
cybermind
befeb12084
[-] Correctly handle RegenerationRate modify in CclSetUnitVariable
2013-04-29 18:49:22 +06:00
cybermind
9a1f64f00e
[+] Player can enable and disable asserts or debug messages. Use -a or -p command line options.
...
[-] Replaced RefsAssert by Assert
2013-04-29 18:46:12 +06:00