enigma-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Enigma-devel] Enigma 0.40: Finding lua files and mouse motion


From: Rasmus Kaj
Subject: [Enigma-devel] Enigma 0.40: Finding lua files and mouse motion
Date: 18 May 2002 13:00:29 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley)

Hello!  I've just tried enigma 0.40 on FreeBSD (I have made a port [1],
but not submitted it yet).  As I see it, there is two problems (one of
which might be intentional, I never played oxyd or rock'n'roll).

The actual game can only be started when standing in the enigma share
directory (where the enigma_conf.lua and levels/ etc are located).  I
took a look at it in the source, and found tree calls to lua::Dofile
in enigma.cc, of which two takes a file name relative to enigma/share,
and the third "fixes" the filename by a call to enigma::FindDataFile
(there is also "correct" Dofile calls in display_2d.cc and world.cc).

I attach a patch for this.


The second problem, that might be intentional, is that when the mouse
suddenly leaves the window, the ball get no more input.  If it is not
intentional (I hope not), it could be fixed by repositioning the mouse
in the center of the window all the time.


[1] http://www.freebsd.org/ports/

PS.  Please keep a cc to me, I'm not on the enigma-devel list.

-- 
Rasmus Kaj ----------------------------------------------- address@hidden
 \     Unix is like a wigwam; no Gates, no Windows, and an Apache inside
  \------------------------------------- http://www.stacken.kth.se/~kaj/

Attachment: patch-enigma.cc
Description: Patch for enigma.cc to find lua files


reply via email to

[Prev in Thread] Current Thread [Next in Thread]