X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FPerson.cpp;h=59f3e0654e1745213834594265c75dde24c48f9b;hb=6dc0cb8a0ff8bb50f3317c6c5e9e9d30391baa00;hp=a95794520d7684204181c46ac80fc39693509209;hpb=7d89354018ef03ca4256ae63db3a8c89df5f277d;p=lugaru.git diff --git a/Source/Person.cpp b/Source/Person.cpp index a957945..59f3e06 100644 --- a/Source/Person.cpp +++ b/Source/Person.cpp @@ -53,8 +53,6 @@ extern bool decals; extern float fadestart; extern bool freeze; extern bool winfreeze; -extern float flashamount, flashr, flashg, flashb; -extern int flashdelay; extern bool showpoints; extern bool immediate; extern int tutoriallevel; @@ -643,12 +641,7 @@ void Person::DoBloodBig(float howmuch, int which) } if (id == 0 && howmuch > 0) { - // FIXME: manipulating attributes - flashamount = .5; - flashr = 1; - flashg = 0; - flashb = 0; - flashdelay = 0; + Game::flash(.5, 0); } if (bloodtoggle && decals && tutoriallevel != 1) { @@ -4375,11 +4368,7 @@ void Person::DoStuff() } if (id == 0) { - flashamount = .5; - flashr = 1; - flashg = 0; - flashb = 0; - flashdelay = 0; + Game::flash(.5, 0); } }