FloooD / custom_cs2dsrv

Jermuk's custom Counter Strike 2D Server written in C and modified by FloooD and leegao.
173.192.35.85:36000
3 stars 0 forks source link

Shotgun error: dmg uninitialized #23

Closed leegao closed 13 years ago

leegao commented 13 years ago

In script-functions.c function OnFire

case 6:
    dmg == weapons[wpn].weapondamage;
    ...

should be changed to

case 6:
    dmg = weapons[wpn].weapondamage;

else shotgun shots will lead to a segfault

FloooD commented 13 years ago

omg fuck i knew i made a retarded mistake somewhere in there lol

leegao commented 13 years ago

:P, glad to see that our prodigy's just as sharp as ever