mirror of
https://github.com/holub/mame
synced 2025-04-23 00:39:36 +03:00
tatsumi.cpp: road intersection explained (nw)
This commit is contained in:
parent
13c65b82eb
commit
0ab56274c9
@ -884,14 +884,17 @@ offset is from last pixel of first road segment?
|
||||
|
||||
if (endPos<0)
|
||||
{
|
||||
// end of left intersection (taking right turn)
|
||||
samplePos=step*(0-startPos);
|
||||
}
|
||||
else if (endPos<x)
|
||||
{
|
||||
// start of right intersection
|
||||
samplePos=step*(x-endPos);
|
||||
}
|
||||
else
|
||||
{
|
||||
// end of right intersection (taking right turn)
|
||||
samplePos=0; // todo
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user