Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 41333 Details for
Bug 66718
atanks patches
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
crash patch
null_player.patch (text/plain), 1.46 KB, created by
basic
on 2004-10-07 19:25:45 UTC
(
hide
)
Description:
crash patch
Filename:
MIME Type:
Creator:
basic
Created:
2004-10-07 19:25:45 UTC
Size:
1.46 KB
patch
obsolete
>Index: src/explosion.cc >=================================================================== >RCS file: /cvsroot/atanks/atanks/src/explosion.cc,v >retrieving revision 1.12 >diff -u -r1.12 explosion.cc >--- src/explosion.cc 1 Feb 2004 23:29:28 -0000 1.12 >+++ src/explosion.cc 8 Oct 2004 02:11:35 -0000 >@@ -159,7 +159,7 @@ > } > if (distance <= (radius + TANKHEIGHT/2) && tank->l > 0) { > _global->updateMenu = 1; >- tank->damage = (int) ((float) damage * ((float) 1 - ((fabs (distance) / (float)radius) / 2)) * player->damageMultiplier); >+ tank->damage = (int) ((player ? (float) damage * player->damageMultiplier : (float) damage) * ((float) 1 - ((fabs (distance) / (float)radius) / 2))); > > tank->creditTo = player; > tank->applyDamage (); >Index: src/beam.cc >=================================================================== >RCS file: /cvsroot/atanks/atanks/src/beam.cc,v >retrieving revision 1.6 >diff -u -r1.6 beam.cc >--- src/beam.cc 4 Feb 2004 23:34:33 -0000 1.6 >+++ src/beam.cc 8 Oct 2004 02:11:36 -0000 >@@ -167,7 +167,7 @@ > if (targetX > ltank->x - TANKWIDTH - radius && targetX < ltank->x + TANKWIDTH + radius && targetY > ltank->y - radius && targetY < ltank->y + TANKHEIGHT + radius && ltank->l > 0) { > //hitSomething = 1; > ltank->requireUpdate (); >- ltank->damage += damage * player->damageMultiplier; >+ ltank->damage += player ? damage * player->damageMultiplier : damage; > ltank->creditTo = player; > if (destroy) > ltank->applyDamage ();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 66718
:
41333
|
41334
|
41481
|
41482