mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-16 03:06:45 -04:00
improve MGF video quality
This commit is contained in:
parent
2be84e406c
commit
f169aa5071
4 changed files with 86 additions and 5 deletions
|
@ -85,6 +85,7 @@
|
|||
|
||||
#define get_string(t) texty[t]
|
||||
static __inline unsigned int rnd(unsigned int max) {
|
||||
if (max == 0) return 0;
|
||||
return rand() % max;
|
||||
}
|
||||
|
||||
|
|
|
@ -745,7 +745,7 @@ void spell_hit(int cil,int min,int max,int owner)
|
|||
|
||||
cil--;
|
||||
h=&postavy[cil];
|
||||
vysl=min+rnd(max-min);
|
||||
vysl=min+rnd(max-min+1);
|
||||
if (vysl<0)
|
||||
{
|
||||
h->lives-=vysl>h->vlastnosti[VLS_MAXHIT]?h->vlastnosti[VLS_MAXHIT]:vysl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue